/* Form Nhận Tư Vấn Miễn Phí Styling */
.rlx-tu-van-form-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
}

.rlx-tu-van-form {
    background: rgba(18, 28, 45, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

/* Form Grid Layout */
.rlx-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.rlx-form-field {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Inputs & Selects */
.rlx-input,
.rlx-select {
    width: 100%;
    height: 52px;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.40) !important;
    background: rgba(0, 0, 0, 0.20) !important;
    padding: 0 16px;
    font-size: 15px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.rlx-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6) !important;
}

/* Prevent Chrome Autofill from turning inputs white */
.rlx-input:-webkit-autofill,
.rlx-input:-webkit-autofill:hover, 
.rlx-input:-webkit-autofill:focus,
.rlx-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.85) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.rlx-input:focus,
.rlx-select:focus {
    border-color: #d99b00 !important;
    background: rgba(0, 0, 0, 0.40) !important;
    box-shadow: 0 0 0 3px rgba(217, 155, 0, 0.25) !important;
}

/* Select Box Wrapper & Dropdown Arrow */
.rlx-select-wrapper {
    position: relative;
}

.rlx-select {
    padding-right: 40px;
    cursor: pointer;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.rlx-select option {
    background-color: #121c2d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    padding: 10px;
}

.rlx-select option:checked,
.rlx-select option:hover {
    background-color: #1e293b !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.rlx-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Upload Section Container */
.rlx-upload-field {
    margin-bottom: 20px;
}

.rlx-upload-box-wrapper {
    width: 100%;
}

.rlx-upload-box {
    display: block;
    width: 100%;
    border-radius: 6px !important;
    border: 1.5px dashed rgba(255, 255, 255, 0.35) !important;
    background: rgba(0, 0, 0, 0.20) !important;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.rlx-upload-box:hover {
    border-color: #d99b00 !important;
    border-style: solid !important;
    background: rgba(0, 0, 0, 0.35) !important;
}

.rlx-file-input {
    display: none !important;
}

/* Default Upload State UI */
.rlx-upload-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rlx-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.rlx-upload-box:hover .rlx-upload-icon {
    transform: translateY(-3px);
}

.rlx-upload-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.rlx-upload-hint {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* Preview State UI */
.rlx-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: rlxFadeIn 0.3s ease-in-out;
}

@keyframes rlxFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.rlx-preview-thumb-container {
    position: relative;
    display: inline-block;
    margin-top: 4px;
}

.rlx-preview-img {
    max-width: 180px;
    max-height: 110px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.rlx-upload-box:hover .rlx-preview-img {
    transform: scale(1.02);
}

/* Red Circular Remove File Button */
.rlx-remove-file-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ef4444 !important;
    border: 2px solid #121c2d !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    padding: 0 !important;
    outline: none !important;
}

.rlx-remove-file-btn:hover {
    transform: scale(1.18);
    background: #dc2626 !important;
}

.rlx-preview-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 90%;
}

.rlx-file-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.rlx-file-size {
    font-size: 12px;
    color: #00e676;
    font-weight: 600;
    background: rgba(0, 230, 118, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 118, 0.3);
    white-space: nowrap;
}

.rlx-change-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.rlx-upload-box:hover .rlx-change-badge {
    color: #d99b00;
    border-color: #d99b00;
    background: rgba(217, 155, 0, 0.15);
}

/* Submit Button */
.rlx-submit-field {
    margin-bottom: 16px;
}

.rlx-submit-btn {
    width: 100%;
    height: 56px;
    background: #d99b00;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(217, 155, 0, 0.3);
}

.rlx-submit-btn:hover {
    background: #e6a500;
    box-shadow: 0 6px 20px rgba(217, 155, 0, 0.45);
    transform: translateY(-1px);
}

.rlx-submit-btn:active {
    transform: translateY(0);
}

.rlx-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.rlx-submit-btn:hover .rlx-btn-arrow {
    transform: translateX(4px);
}

/* Form Response Message */
.rlx-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.rlx-form-message.success {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid #00e676;
    color: #00e676;
}

.rlx-form-message.error {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid #ff5252;
    color: #ff5252;
}

/* Footer Note */
.rlx-form-note {
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 639px) {
    .rlx-tu-van-form {
        padding: 24px 18px;
    }

    .rlx-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rlx-input,
    .rlx-select {
        height: 48px;
        font-size: 14px;
    }

    .rlx-submit-btn {
        height: 52px;
        font-size: 15px;
    }

    .rlx-form-note {
        font-size: 12px;
    }
}
