body .us6-dialog .modal-dialog {
    max-width: 100%;
    margin: 0;
}

body .us6-dialog .custom-modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    position: relative;
}

body .us6-dialog .custom-modal-content .custom-modal-header {
    border-bottom: none;
    padding: 1rem;
    position: relative;
    background-color: #fff;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body .us6-dialog .custom-modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

body .us6-dialog .custom-modal-header .btn-close {
    position: static;
    padding: 0.5rem;
    opacity: 1;
    background-color: transparent;
    border: none;
    --bs-btn-close-color: #333;
    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 0.8;
    --bs-btn-close-focus-shadow: none;
}

body .us6-dialog .custom-modal-content .custom-modal-body {
    padding: 0 1rem 1rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    max-height: none;
    height: auto;
}

body .us6-dialog .required-star {
    color: #ff4444;
    margin-right: 2px;
}

body .us6-dialog .custom-form-group {
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

body .us6-dialog .custom-form-group.mb-4,
body .us6-dialog .custom-passenger-group.mb-4 {
    margin-bottom: 4px;
}

body .us6-dialog .custom-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    min-width: auto;
    margin-right: 8px;
    margin-bottom: 2px;
}

body .us6-dialog .custom-input,
body .us6-dialog .custom-select {
    width: 98%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    margin: 0;
}

body .us6-dialog .custom-input.error {
    border-color: #ff4444;
}

body .us6-dialog .error-tip {
    font-size: 12px;
    color: #ff4444;
    margin-top: 2px;
    display: block;
}

body .us6-dialog .custom-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23666'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    padding-right: 30px;
}

body .us6-dialog .custom-input:focus,
body .us6-dialog .custom-select:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.1);
}

body .us6-dialog .custom-passenger-select {
    max-width: 100%;
    flex-shrink: 0;
}

body .us6-dialog .custom-remark {
    font-size: 12px;
    color: #888;
    line-height: 1.2;
    margin-left: 8px;
    flex-shrink: 1;
}

body .us6-dialog .custom-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 8px 0 4px 0;
}

body .us6-dialog .custom-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin: 6px 0 4px 0;
}

body .us6-dialog .custom-passenger-group {
    padding: 2px 0;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px;
}

body .us6-dialog .custom-passenger-group .form-value-box {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

body .us6-dialog .custom-radio-group {
    padding-left: 0;
    margin-bottom: 6px;
}

body .us6-dialog .custom-radio-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 2px;
}

body .us6-dialog .custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    cursor: pointer;
}

body .us6-dialog .custom-radio:checked {
    border-color: #ff9500;
    background-color: #ff9500;
}

body .us6-dialog .custom-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
}

body .us6-dialog .radio-text {
    font-size: 14px;
    color: #333;
}

body .us6-dialog .custom-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    min-height: 80px;
    margin-top: 4px;
}

body .us6-dialog .custom-textarea:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.1);
}

body .us6-dialog .custom-modal-footer {
    border-top: none;
    padding: 0 1rem 1rem;
    justify-content: flex-end;
    box-sizing: border-box;
}

body .us6-dialog .custom-submit-btn {
    width: auto;
    min-width: 120px;
    height: 48px;
    background-color: #ff9500;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0 24px;
}

body .us6-dialog .custom-submit-btn:hover {
    background-color: #e68900;
}

@media (max-width: 767px) {
    body .us6-dialog .modal-dialog {
        max-width: 100%;
        margin: 10px auto;
    }

    body .us6-dialog .custom-form-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 2px;
    }

    body .us6-dialog .custom-label {
        min-width: auto;
        margin-bottom: 2px;
        margin-right: 0;
        width: 100%;
    }

    body .us6-dialog .custom-passenger-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 2px;
        padding: 0;
    }

    body .us6-dialog .custom-passenger-group .form-value-box {
        width: 100%;
        margin-top: 2px;
        gap: 4px;
    }

    body .us6-dialog .custom-passenger-select {
        max-width: 100%;
        width: 74%;
    }

    body .us6-dialog .custom-submit-btn {
        width: 100%;
        min-width: auto;
    }

    body .us6-dialog .custom-modal-header .btn-close {
        padding: 0.75rem;
        --bs-btn-close-size: 24px;
    }

    body .us6-dialog .custom-section-title {
        margin: 6px 0 2px 0;
    }

    body .us6-dialog .custom-subtitle {
        margin: 4px 0 2px 0;
    }

    body .us6-dialog .custom-radio-group {
        margin-bottom: 4px;
    }
}

body .us6-dialog ::-webkit-scrollbar {
    display: none;
}
body .us6-dialog {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
