﻿/* Highlight invalid fields with a red border */
input.error,
select.error,
textarea.error {
    border: 1.5px solid #B51F0f !important;
    background-color: #fff8f7;
}

/* Show error messages in red when active */
.field-validation-error.active {
    display: block;
    color: #B51F0f !important;
    font-size: 13px;
    margin-top: 2px;
}
.contact-support-page {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

    .contact-support-page .page-header {
        margin-bottom: 10px;
        margin-top: 22px;
    }

    .contact-support-page .page-title {
        font-family: 'Solve Pro Screen Variable', sans-serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 20px;
        color: #1E2229;
        margin: 0 0 36px 0;
        padding: 0;
    }

    .contact-support-page .row {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-support-page .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

.contact-support-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 32px 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Solve Pro Screen Variable', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form Styles */
.contact-support-modal {
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    color: #323234;
}

    .contact-support-modal .modal-dialog {
        max-width: 800px;
    }

    .contact-support-modal .modal-header {
        border-bottom: 1px solid #d4dbe3;
        padding: 16px;
    }

    .contact-support-modal .modal-title {
        font-size: 16px;
        line-height: 20px;
        font-weight: 700;
        color: #323234;
        margin: 0;
    }

    .contact-support-modal .modal-body {
        padding: 24px;
        background: #ffffff;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

.support-form-section {
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #1E2229;
    margin-bottom: 8px;
    margin-top: 0;
}

.support-label {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: #303640;
    margin-bottom: 4px;
    display: block;
}

/* Override for description field label to match upload instructions */
.support-label.description-label {
    font-size: 12px;
    font-weight: 400;
}

.required-field {
    color: #e53e3e;
}

.support-input,
.support-textarea,
input[type="text"].form-control,
input[type="date"].form-control,
select.form-control,
textarea.form-control {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #1E2229;
    border: 1px solid #869c81;
    border-radius: 4px;
    width: 100%;
    background-color: #ffffff;
    box-sizing: border-box;
}

    .support-input:focus,
    .support-textarea:focus,
    input[type="text"].form-control:focus,
    input[type="date"].form-control:focus,
    select.form-control:focus,
    textarea.form-control:focus {
        border-color: #869c81;
        outline: none;
        box-shadow: none;
    }

    /* Error state styling */
    .support-input.error,
    .support-textarea.error,
    input[type="text"].form-control.error,
    input[type="date"].form-control.error,
    select.form-control.error,
    textarea.form-control.error {
        border-color: #e53e3e !important;
        border-width: 1px !important;
    }

    .support-input.error:focus,
    .support-textarea.error:focus,
    input[type="text"].form-control.error:focus,
    input[type="date"].form-control.error:focus,
    select.form-control.error:focus,
    textarea.form-control.error:focus {
        border-color: #e53e3e !important;
        outline: none;
        box-shadow: none;
    }

/* Placeholder styling - ensure consistency across all input types */
.support-input::placeholder,
.support-textarea::placeholder,
input[type="text"].form-control::placeholder,
textarea.form-control::placeholder {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9CA3AF;
    opacity: 1;
}

/* Date input specific styling to match text inputs */
input[type="date"].form-control,
input[type="date"].support-input {
    font-weight: 400 !important;
    color: #1E2229;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23303640'%3E%3Cpath d='M17 3h-1V1h-2v2H6V1H4v2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 14H3V8h14v9zM3 6V5h14v1H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    position: relative;
}

/* Make the entire date input clickable */
input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="date"].support-input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

/* Date input parts styling */
input[type="date"].form-control::-webkit-datetime-edit-text,
input[type="date"].form-control::-webkit-datetime-edit-month-field,
input[type="date"].form-control::-webkit-datetime-edit-day-field,
input[type="date"].form-control::-webkit-datetime-edit-year-field,
input[type="date"].support-input::-webkit-datetime-edit-text,
input[type="date"].support-input::-webkit-datetime-edit-month-field,
input[type="date"].support-input::-webkit-datetime-edit-day-field,
input[type="date"].support-input::-webkit-datetime-edit-year-field {
    font-weight: 400 !important;
    color: #1E2229;
}

/* Style date input when empty to show lighter placeholder */
input[type="date"].form-control:invalid::-webkit-datetime-edit,
input[type="date"].support-input:invalid::-webkit-datetime-edit {
    color: #9CA3AF !important;
    font-weight: 400 !important;
}

/* Additional date input styling for empty state */
input[type="date"].form-control:not(:focus):invalid,
input[type="date"].support-input:not(:focus):invalid {
    color: #9CA3AF !important;
    font-weight: 400 !important;
}

/* Select dropdown styling to match text inputs */
select.form-control,
select.support-input {
    font-weight: 400 !important;
    color: #1E2229;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23303640' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

/* Style select when placeholder option is selected */
select.form-control:invalid,
select.support-input:invalid,
select.form-control option[value=""],
select.support-input option[value=""],
select.form-control option[value=""]:first-child,
select.support-input option[value=""]:first-child {
    color: #9CA3AF !important;
    font-weight: 400 !important;
}

/* Style actual options darker */
select.form-control:valid,
select.support-input:valid {
    color: #1E2229;
    font-weight: 400 !important;
}

select.form-control option,
select.support-input option {
    font-weight: 400;
    color: #1E2229;
}

select.form-control option[value=""],
select.support-input option[value=""] {
    color: #9CA3AF;
}

.support-textarea,
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact Reason Radio Buttons */
.contact-reason-options {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-left: 0;
    flex-wrap: wrap;
}

.contact-reason-options.error .reason-option {
    border-color: #e53e3e;
}

.reason-option {
    flex: 1;
    border: 2px solid #d4dbe3;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: left;
    user-select: none;
}

    .reason-option:hover {
        border-color: #1d6460;
        background-color: #f5f9f9;
    }

    .reason-option:has(input[type="radio"]:checked) {
        border-color: #1d6460;
        background-color: #e8f4f3;
    }

    .reason-option input[type="radio"] {
        margin-right: 8px;
        cursor: pointer;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .reason-option label {
        cursor: pointer;
        margin: 0;
        font-size: 14px;
        font-weight: 400;
        color: #323234;
    }

    .reason-option input[type="radio"]:checked ~ label {
        font-weight: 600;
    }

/* Form Rows */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-col-6 {
    flex: 1;
}

.inline-fields {
    flex-wrap: nowrap;
}

/* Conditional Section */
.conditional-section {
    display: none;
    background: #f6f8fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

    .conditional-section.active {
        display: block;
    }

/* File Upload Area */
.upload-description,
.upload-instructions {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    color: #303640;
    margin-bottom: 8px;
}

.file-upload-area {
    border: 2px dashed #d4dbe3;
    border-radius: 4px;
    padding: 32px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

    .file-upload-area:hover,
    .file-upload-area.drag-over {
        border-color: #1d6460;
        background: #f5f9f9;
    }

.btn-upload {
    background: #ffffff;
    color: #1D6460;
    border: 2px solid #1D6460;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-upload:hover {
        background: #e8f4f3;
        color: #1D6460;
        border-color: #1D6460;
    }

.file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #d4dbe3;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-name {
    font-size: 12px;
    color: #323234;
    flex: 1;
}

.file-size {
    font-size: 11px;
    color: #76767a;
    margin: 0 12px;
}

.file-remove {
    background: transparent;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
}

    .file-remove:hover {
        color: #b71c1c;
    }

.field-validation-error {
    font-size: 11px;
    line-height: 14px;
    display: block;
    margin-top: 4px;
    color: #e53e3e;
    display: none;
}

.field-validation-error.active {
    display: block;
}

.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #d4dbe3;
}

.cancel-button {
    background: none;
    border: none;
    height: 38px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    border-radius: 4px;
    width: auto;
    min-width: 100px;
}

    .cancel-button:hover {
        background: none;
    }

.cancel-text {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 100%;
    color: #303640;
    text-decoration: underline;
}

.save-button {
    background: #1D6460;
    border: 1px solid #1D6460;
    border-radius: 4px;
    height: 38px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    width: auto;
    min-width: 120px;
}

    .save-button:hover {
        background: #1D6460;
        border: 1px solid #1D6460;
    }

    .save-button:disabled {
        background: #cbd5e0;
        border-color: #cbd5e0;
        cursor: not-allowed;
    }

.save-text {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #FFFFFF;
}

.submit-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Action bar at bottom */
.action-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 86px;
    background: #FFFFFF;
    border-top: 1px solid #D4DBE3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 64px;
}

.right-container-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 38px;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .contact-support-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

        /* Keep inline-fields as a row even on mobile */
        .form-row.inline-fields {
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            gap: 12px;
        }

            .form-row.inline-fields .form-col-6 {
                flex: 1 1 auto;
                min-width: 0;
            }

    .contact-reason-options {
        flex-direction: column;
        gap: 8px;
    }

    .reason-option {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .modal-footer-actions {
        gap: 8px;
        padding: 16px;
    }

    .action-bar {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .right-container-bottom {
        width: 100%;
        flex-direction: column;
    }

    .cancel-button,
    .save-button {
        width: 100%;
        justify-content: center;
    }
}

/* Requester Section Styling */
.requester-section {
    margin-top: 24px;
    margin-bottom: 32px;
}

.requester-info-box {
    border: 1px solid #d4dbe3;
    border-radius: 4px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background-color: #ffffff;
}

.requester-field {
    display: flex;
    flex-direction: column;
}

.requester-label {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 6px;
    display: block;
}

.requester-input {
    font-family: 'Solve Pro Screen Variable', sans-serif !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 400 !important;
    color: #1E2229 !important;
    border: 1px solid #d4dbe3 !important;
    border-radius: 4px;
    background-color: #ffffff !important;
    padding: 8px 12px;
    width: 100%;
}

    .requester-input:focus {
        border-color: #1d6460 !important;
        outline: none;
        box-shadow: none !important;
        background-color: #ffffff !important;
    }

    .requester-input:-webkit-autofill,
    .requester-input:-webkit-autofill:hover,
    .requester-input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
        box-shadow: 0 0 0px 1000px #ffffff inset !important;
        border: 1px solid #d4dbe3 !important;
        -webkit-text-fill-color: #1E2229 !important;
        font-family: 'Solve Pro Screen Variable', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
    }

input#requesterName,
input#requesterEmail,
input#requesterPhone {
    font-family: 'Solve Pro Screen Variable', sans-serif !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 400 !important;
    color: #1E2229 !important;
}

/* Email-specific styling - link color */
input#requesterEmail {
    color: #1d6460 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

    /* Show underline only when email has a value (not showing placeholder) */
    input#requesterEmail:not(:placeholder-shown) {
        text-decoration: underline !important;
    }

    input#requesterEmail:hover {
        color: #155450 !important;
    }

    input#requesterEmail:focus {
        color: #1d6460 !important;
        cursor: text !important;
    }

    input#requesterEmail:-webkit-autofill,
    input#requesterEmail:-webkit-autofill:hover,
    input#requesterEmail:-webkit-autofill:focus {
        -webkit-text-fill-color: #1d6460 !important;
    }

    /* Email placeholder styling - no underline, normal color */
    input#requesterEmail::placeholder {
        color: #9CA3AF !important;
        text-decoration: none !important;
    }

/* Phone number styling - link color */
input#requesterPhone {
    color: #1d6460 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

    /* Show underline only when phone has a value (not showing placeholder) */
    input#requesterPhone:not(:placeholder-shown) {
        text-decoration: underline !important;
    }

    input#requesterPhone:hover {
        color: #155450 !important;
    }

    input#requesterPhone:focus {
        color: #1d6460 !important;
        cursor: text !important;
    }

    input#requesterPhone:-webkit-autofill,
    input#requesterPhone:-webkit-autofill:hover,
    input#requesterPhone:-webkit-autofill:focus {
        -webkit-text-fill-color: #1d6460 !important;
    }

    /* Phone placeholder styling - no underline, normal color */
    input#requesterPhone::placeholder {
        color: #9CA3AF !important;
        text-decoration: none !important;
    }

.requester-input::placeholder {
    font-family: 'Solve Pro Screen Variable', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9CA3AF;
    opacity: 1;
}

.requester-input.error {
    border-color: #e53e3e !important;
}

    .requester-input.error:focus {
        border-color: #e53e3e !important;
        outline: none;
        box-shadow: none;
    }

/* Error state for email field - override link styling */
input#requesterEmail.error {
    color: #1E2229 !important;
    border: 1px solid #e53e3e !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
}

    input#requesterEmail.error:focus {
        color: #1E2229 !important;
        border-color: #e53e3e !important;
        text-decoration: none !important;
    }

/* Error state for phone field - override link styling */
input#requesterPhone.error {
    color: #1E2229 !important;
    border: 1px solid #e53e3e !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
}

    input#requesterPhone.error:focus {
        color: #1E2229 !important;
        border-color: #e53e3e !important;
        text-decoration: none !important;
    }

@media (max-width: 768px) {
    .requester-info-box {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

#email.support-input,
#email.support-input:-webkit-autofill,
#email.support-input:-webkit-autofill:focus {
    font-family: 'Solve Pro Screen Variable', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1E2229 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0px 1000px #fff inset !important;
}

.drag-over {
    border: 2px dashed #007bff;
    background-color: #f8f9fa;
}