/**
 * Accreditation Scheme Contact Form Frontend Stylesheet
 * 100% Isolated Scope Prefix: nabet-accreditation-
 */

/* Container & Card Wrapper */
.nabet-accreditation-form-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #111827;
}

.nabet-accreditation-form-wrapper *,
.nabet-accreditation-form-wrapper *::before,
.nabet-accreditation-form-wrapper *::after {
    box-sizing: border-box;
}

.nabet-accreditation-form-card {
    background-color: transparent;
    border-radius: 12px;
    padding: 30px 32px;
    box-shadow: none;
    border: none;
} 

/* Header Title */
.nabet-accreditation-form-title {
    font-size: 41px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 22px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Form Layout Grid */
.nabet-accreditation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nabet-accreditation-row {
    display: flex;
    gap: 18px;
    width: 100%;
}

.nabet-accreditation-field-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.nabet-accreditation-full-width {
    width: 100%;
}

/* Labels & Inputs */
.nabet-accreditation-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    display: inline-block;
}

.nabet-accreditation-required {
    color: #dc2626;
    margin-left: 2px;
}

.nabet-accreditation-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.nabet-accreditation-textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    resize: vertical;
    min-height: 95px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nabet-accreditation-input::placeholder,
.nabet-accreditation-textarea::placeholder {
    color: #94a3b8;
}

.nabet-accreditation-input:focus,
.nabet-accreditation-textarea:focus {
    background-color: #ffffff;
    border-color: #004b87;
    box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.15);
}

.nabet-accreditation-input.nabet-accreditation-has-error,
.nabet-accreditation-textarea.nabet-accreditation-has-error {
    border-color: #dc2626;
    background-color: #fff5f5;
}

.nabet-accreditation-field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    display: none;
}

.nabet-accreditation-field-error.active {
    display: block;
}

/* Bottom Bar: Contact Info & Submit Button */
.nabet-accreditation-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
}

.nabet-accreditation-info {
    font-size: 12.5px;
    line-height: 1.45;
    color: #475569;
}

.nabet-accreditation-info-note {
    margin: 0 0 2px 0;
    font-weight: 500;
    color: #fff;
}

.nabet-accreditation-info-contacts {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.nabet-accreditation-info-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nabet-accreditation-info-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Submit Button */
.nabet-accreditation-submit-wrapper {
    flex-shrink: 0;
}

.nabet-accreditation-submit-btn {
    height: 44px;
    padding: 0 28px;
    background-color: #ff8f21;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 75, 135, 0.25);
}

.nabet-accreditation-submit-btn:active {
    transform: translateY(1px);
}

.nabet-accreditation-submit-btn:disabled {
    background-color: #94a3b8 !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Spinner */
.nabet-accreditation-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: nabet-acc-spin 0.8s linear infinite;
}

@keyframes nabet-acc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alerts */
.nabet-accreditation-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 18px;
}

.nabet-accreditation-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.nabet-accreditation-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Responsive Breakpoints */
@media (max-width: 767px) {
    .nabet-accreditation-form-card {
        padding: 22px 18px;
        border-radius: 8px;
    }

    .nabet-accreditation-row {
        flex-direction: column;
        gap: 16px;
    }

    .nabet-accreditation-bottom-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: center;
    }

    .nabet-accreditation-submit-btn {
        width: 100%;
    }
}
