/* SME Form Styles - All prefixed with sme-form- to avoid conflicts */

.sme-form-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sme-form-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.sme-form-step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.sme-form-step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sme-form-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.sme-form-step-item.active .sme-form-step-number {
    background: #003b51;
}

.sme-form-step-item.completed .sme-form-step-number {
    background: #28a745;
}

.sme-form-step {
    display: none;
}

.sme-form-step.active {
    display: block;
}

.sme-form-section {
    margin-bottom: 30px;
}

.sme-form-section h3 {
    color: #003b51;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003b51;
}

.sme-form-section h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
}

.sme-form-group {
    margin-bottom: 20px;
}

.sme-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.sme-form-required-indicator {
    color: #dc3545;
    margin-left: 5px;
}

.sme-form-optional-indicator {
    background: #007bff;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
    display: inline-block;
}

.sme-form-required-badge {
    background: #dc3545;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
    display: inline-block;
}

.sme-form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    box-sizing: border-box;
}

.sme-form-control:focus {
    border-color: #003b51;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,59,81,0.2);
}

.sme-form-file-upload-wrapper {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.sme-form-file-upload-wrapper.has-file {
    border-color: #28a745;
    background: #f0f9f4;
}

.sme-form-file-input-label {
    cursor: pointer;
    display: inline-block;
    padding: 10px 20px;
    background: #003b51;
    color: #ffffff !important;
    border-radius: 4px;
    margin: 5px;
    text-decoration: none;
    font-weight: 500;
}

.sme-form-file-input-label:hover {
    background: #002a3a;
}

.sme-form-file-name {
    margin-top: 10px;
    color: #28a745;
    font-weight: 600;
}

.sme-form-btn-delete-file {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.sme-form-btn-delete-file:hover {
    background: #5a6268;
}

.sme-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.sme-form-btn-nav {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.sme-form-btn-prev {
    background: #6c757d;
    color: #fff;
}

.sme-form-btn-prev:hover {
    background: #5a6268;
}

.sme-form-btn-next, 
.sme-form-btn-submit {
    background: #003b51;
    color: #fff;
}

.sme-form-btn-next:hover, 
.sme-form-btn-submit:hover {
    background: #002a3a;
}

.sme-form-all-optional-banner {
    background: #007bff;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.sme-form-info-text {
    background: #e7f3ff;
    padding: 15px;
    border-left: 4px solid #003b51;
    margin-bottom: 20px;
    border-radius: 4px;
}

.sme-form-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.sme-form-group.has-error .sme-form-control {
    border-color: #dc3545;
}

.sme-form-group.has-error .sme-form-error-message {
    display: block;
}

.sme-form-success-message {
    display: none;
    background: #fff;
    color: #333;
    padding: 40px;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sme-form-success-title {
    font-size: 28px;
    font-weight: bold;
    color: #003b51;
    margin-bottom: 20px;
    line-height: 1.3;
}

.sme-form-success-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sme-form-success-instructions {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sme-form-success-contact {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.sme-form-success-thanks {
    font-size: 16px;
    color: #333;
    margin-bottom: 0;
    line-height: 1.6;
}

.sme-form-brand-name {
    color: #003b51;
    font-weight: bold;
}

.sme-form-recaptcha-wrapper {
    margin: 20px 0;
}

.sme-form-step-error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.sme-form-step-error-message.show {
    display: block;
}

.sme-form-step-error-message i {
    margin-right: 8px;
}

/* Step indicator label defaults */
.sme-form-step-item > div:last-child {
    font-size: 14px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Responsive: make step indicator usable on small screens */
@media (max-width: 768px) {
    .sme-form-container {
        padding: 18px;
    }

    .sme-form-step-number {
        width: 34px;
        height: 34px;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .sme-form-step-item > div:last-child {
        font-size: 12px;
    }
}

/* Apply compact/scroll stepper on any narrow container */
@media (max-width: 992px) {
    /* Compact pattern: scrollable circles + single label below */
    .sme-form-step-indicator {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        padding: 0 0 10px;
        margin: 0 0 6px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .sme-form-step-indicator::before {
        display: none !important;
    }

    .sme-form-step-item {
        flex: 0 0 auto !important;
        min-width: 44px;
        scroll-snap-align: center;
    }

    /* Hide tiny labels to prevent overlap */
    .sme-form-step-item > div:last-child {
        display: none !important;
    }

    .sme-form-step-indicator-mobile-label {
        display: block;
        font-size: 13px;
        line-height: 1.25;
        color: #003b51;
        font-weight: 600;
        margin: 0 0 18px;
        text-align: center;
    }
}

@media (min-width: 993px) {
    .sme-form-step-indicator-mobile-label {
        display: none;
    }
}

/* Review step: add top padding so heading is not touching top */
.sme-form-step[data-step="6"] {
    padding-top: 20px;
}

/* Review summary: underline heading text only, no horizontal lines */
.sme-form-review-summary {
    padding: 0;
}
.sme-form-review-section {
    margin-bottom: 20px;
    padding: 0;
}
.sme-form-review-section:last-child {
    margin-bottom: 0;
}
.sme-form-review-section-title {
    color: #003b51;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: 0.02em;
}
.sme-form-review-section-body {
    padding-left: 0;
    padding-top: 2px;
}
.sme-form-review-row {
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.sme-form-review-row:last-child {
    margin-bottom: 0;
}
