/* SSO Top Section */
.floorstock-sso-top-section {
    text-align: center;
    padding: 30px;
    background: #1E396C;
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.floorstock-sso-top-section h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.floorstock-sso-top-section p {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.sso-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white !important;
    color: #1E396C !important;
    padding: 15px 25px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    min-width: 280px;
    line-height: 1.2 !important;
}

.sso-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
    background: #f8f9fa !important;
}

.sso-icon {
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

.sso-section-divider {
    position: relative;
    margin: 30px 0 10px;
    text-align: center;
}

.sso-section-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

.sso-section-divider span {
    background: #1E396C;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lead Form Section */
.floorstock-lead-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e8ecef;
}

.floorstock-lead-section h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.floorstock-lead-section p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Form Styles */
.floorstock-lead-form-wrapper {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.floorstock-lead-form-wrapper input[type="text"],
.floorstock-lead-form-wrapper input[type="tel"],
.floorstock-lead-form-wrapper input[type="email"],
.floorstock-lead-form-wrapper input[type="password"],
.floorstock-lead-form-wrapper select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.floorstock-lead-form-wrapper input:focus,
.floorstock-lead-form-wrapper select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox Styles */
.terms-group {
    margin: 25px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button - Made Smaller */
.submit-group {
    text-align: center;
    margin-top: 30px;
}

.submit-application-btn {
    background: #1E396C !important;
    color: white !important;
    padding: 14px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 600 !important;
    width: auto;
    min-width: 200px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-application-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.submit-application-btn:disabled {
    opacity: 0.7;
    transform: none !important;
    cursor: not-allowed;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading {
    display: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-note {
    margin-top: 12px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: #d4f4e0;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .floorstock-lead-section {
        padding: 20px 15px;
    }

    .floorstock-sso-top-section {
        padding: 20px 15px;
    }

    .sso-login-button {
        min-width: auto;
        width: 100%;
        padding: 12px 20px !important;
    }

    .submit-application-btn {
        width: 100%;
        max-width: none;
    }
}

/* WooCommerce Overrides */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    display: none !important;
}

.woocommerce-account .customer-login,
.woocommerce-account .martfury-login-tabs {
    display: none !important;
}

.page-breadcrumbs + h1.entry-title {
    margin-top: -75px !important;
}

.woocommerce-account .site-content {
    margin-top: -67px !important;
}

.woocommerce-account .site-content .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.floorstock-sso-top-section,
.floorstock-lead-section {
    display: block !important;
}