/* ============================================
   FORMS & MODALS - Matrix Theme
   ============================================ */

/* Booking Form */
.booking-form {
    background: rgba(0, 20, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    width: 100%;
}

.booking-form .gxm-turnstile {
    width: 100%;
    margin-top: 0.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: lowercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ff41' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-group select option {
    background: #000;
    color: #fff;
}

.contact-intent-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.contact-intent-option {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 72px;
    padding: 0.85rem 0.9rem;
    margin: 0 !important;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 51, 51, 0.26);
    border-radius: 6px;
    color: #fff !important;
    text-transform: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-intent-option:hover {
    border-color: rgba(255, 51, 51, 0.58);
    background: rgba(255, 51, 51, 0.08);
    transform: translateY(-1px);
}

.contact-intent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-intent-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(255, 51, 51, 0.12);
    box-shadow: 0 0 18px rgba(255, 51, 51, 0.18);
}

.contact-intent-option:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.intent-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.intent-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.intent-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.52);
}

.operator-checklist-option {
    position: relative;
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.75rem 0 0 !important;
    padding: 0.9rem 1rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(0, 255, 65, 0.22);
    border-radius: 6px;
    color: #fff !important;
    text-transform: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.operator-checklist-option:hover {
    border-color: rgba(0, 255, 65, 0.46);
    background: rgba(0, 255, 65, 0.055);
}

.operator-checklist-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.operator-checklist-box {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0.08rem;
    border: 1px solid rgba(0, 255, 65, 0.58);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.56);
}

.operator-checklist-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #071307;
    border-bottom: 2px solid #071307;
    opacity: 0;
    transform: rotate(42deg) scale(0.85);
}

.operator-checklist-option:has(input:checked) {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.08);
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.14);
}

.operator-checklist-option:has(input:focus-visible) {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

.operator-checklist-option:has(input:checked) .operator-checklist-box {
    background: #00ff41;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.46);
}

.operator-checklist-option:has(input:checked) .operator-checklist-box::after {
    opacity: 1;
}

.operator-checklist-copy {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.operator-checklist-label {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
}

.operator-checklist-hint {
    color: rgba(255, 255, 255, 0.54);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    line-height: 1.35;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 640px) {
    .booking-form {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .contact-intent-options {
        grid-template-columns: 1fr;
    }

    .contact-intent-option {
        min-height: 58px;
    }
}

.form-guarantee {
    text-align: center;
    font-size: 14px;
    color: var(--text-medium);
    margin-top: 1rem;
    font-weight: 500;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
}

.success-message {
    background: rgba(255, 51, 51, 0.1);
    color: var(--accent);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 51, 51, 0.3);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 51, 51, 0.3);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: var(--accent);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Value Box (in contact) */
.value-box {
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.value-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.value-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.value-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.value-box p {
    color: var(--text-medium);
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}
