/* ------------------------------------------------------------
   GLOBAL WRAPPER SIZING / LAYOUT
------------------------------------------------------------ */

.custom-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.centerwrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   FORM WRAPPER
------------------------------------------------------------ */

.customRequestForm {
    max-width: 700px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 1rem;
    color: #000;
}

/* ------------------------------------------------------------
   FORM GROUP BLOCKS
------------------------------------------------------------ */

.customRequestFormGroup {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.customRequestFormGroup.hasError {
    border-color: #dc3545;
}

/* ------------------------------------------------------------
   LABELS
------------------------------------------------------------ */

.customRequestLabel {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.customRequestLabel.required::after {
    content: ' *';
    color: #dc3545;
    margin-left: 0.25rem;
}

/* ------------------------------------------------------------
   INPUTS, TEXTAREAS, SELECTS
------------------------------------------------------------ */

.customRequestInput,
.customRequestTextarea,
.customRequestSelect {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

.customRequestInvalid {
    border-color: #dc3545;
    background-color: #fff6f6;
}

.customRequestTextarea {
    resize: vertical;
}

/* ------------------------------------------------------------
   ERROR TEXT
------------------------------------------------------------ */

.customRequestError {
    margin-top: 6px;
    font-size: 0.875rem;
    color: #dc3545;
}

/* ------------------------------------------------------------
   SUBMIT BUTTON
------------------------------------------------------------ */

.customRequestButton {
    background-color: var(--buttonBackground);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.customRequestButton:hover {
    background-color: #1669c1;
}

/* ------------------------------------------------------------
   RESPONSIVE TWEAKS
------------------------------------------------------------ */

@media (max-width: 600px) {
    .customRequestForm {
        padding: 0.75rem;
    }

    .customRequestFormGroup {
        padding: 1rem;
    }

    .customRequestButton {
        width: 100%;
    }
}

/* ------------------------------------------------------------
   NOTES & INSTRUCTIONS
------------------------------------------------------------ */

.customRequestNote {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.4;
}

.customRequestInstructions {
    max-width: 680px;
    margin: 0 auto 1.5rem;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.customRequestInstructions strong {
    color: #1a73e8;
    font-weight: 600;
}

.customRequestInstructions .greenText {
    color: #2f8556;
    font-weight: 600;
}

.customRequestInstructions .infoIcon {
    font-size: 1.2rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.customRequestReminder {
    font-size: 0.875rem;
    color: #555;
    font-style: italic;
    margin-left: 1.5rem;
}

.customRequestSectionHeader {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.25rem;
    color: var(--mainColor);
}

/* ------------------------------------------------------------
   PACKAGE BOXES
------------------------------------------------------------ */

.package-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.package-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: 0.25s ease;
    background: #fafafa;
}

.package-box:hover {
    border-color: var(--mainColor);
    background: #f0f4ff;
}

.package-radio {
    margin-top: 6px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Highlight entire box when checked */
.package-radio:checked + .package-content,
.package-box:has(.package-radio:checked) {
    border-color: var(--mainColor);
    background: #e8efff;
}

.package-content {
    flex-grow: 1;
}

.package-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--mainColor);
}

.package-description {
    margin: 8px 0;
    font-size: 0.95rem;
}

.package-price {
    margin: 6px 0 0;
    font-weight: 600;
}

/* ------------------------------------------------------------
   SELECT2 — MULTISELECT & STYLING
------------------------------------------------------------ */

.select2-container--default .select2-results__option {
    color: #000;
    background-color: #fff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f0f0;
    color: #000;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000;
    background-color: #fff;
}

/* Multi-select appearance */
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    min-height: 42px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 6px;
}

/* Selected tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e0e0e0;
    color: #000;
    border: 1px solid #ccc;
    padding: 4px 8px;
    font-size: 0.875rem;
    border-radius: 4px;
    margin: 2px 4px 2px 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #333;
    margin-right: 6px;
    font-size: 1rem;
}

.select2-container .select2-dropdown {
    border: 1px solid #aaa !important;
    box-shadow: none !important;
}
