/* Pre-Order Modal Styles */
/* Drop Bear Golf - Matches site aesthetic */

.preorder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preorder-modal.active {
    display: block;
    opacity: 1;
}

.preorder-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.preorder-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 48px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preorder-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
}

.preorder-modal-close:hover {
    color: #000;
}

.preorder-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.preorder-modal-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px 0;
}

/* FORM STYLES */
.preorder-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preorder-form-group {
    display: flex;
    flex-direction: column;
}

.preorder-form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.preorder-form-group input[type="text"],
.preorder-form-group input[type="email"] {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.preorder-form-group input:focus {
    outline: none;
    border-color: #fbb042;
}

/* RADIO BUTTONS & CHECKBOXES */
.preorder-product-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preorder-radio-label,
.preorder-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.preorder-radio-label:hover,
.preorder-checkbox-label:hover {
    border-color: #fbb042;
    background: #fff9f0;
}

.preorder-radio-label input[type="radio"],
.preorder-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.preorder-radio-label input[type="radio"]:checked + span,
.preorder-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.preorder-radio-label:has(input:checked),
.preorder-checkbox-label:has(input:checked) {
    border-color: #fbb042;
    background: #fff9f0;
}

/* SUBMIT BUTTON */
.preorder-submit-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: #fbb042;
    color: #1d1d1f;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.preorder-submit-btn:hover:not(:disabled) {
    background: #f5a832;
    transform: scale(1.02);
}

.preorder-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ERROR MESSAGE */
.preorder-error-message {
    padding: 12px 16px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c00;
    font-size: 14px;
}

/* CONFIRMATION VIEW */
.preorder-confirmation-view {
    text-align: center;
}

.preorder-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.preorder-confirmation-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1d1d1f;
}

.preorder-confirmation-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* SOCIAL LINKS */
.preorder-social-links {
    margin-bottom: 32px;
}

.preorder-social-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
}

.preorder-social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.preorder-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1d1d1f;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.preorder-social-icons a:hover {
    background: #fbb042;
    color: #1d1d1f;
    transform: scale(1.1);
}

/* CLOSE BUTTON (CONFIRMATION) */
.preorder-close-btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.preorder-close-btn:hover {
    border-color: #1d1d1f;
    color: #1d1d1f;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .preorder-modal-content {
        padding: 32px 24px;
        width: 95%;
    }
    
    .preorder-modal-title {
        font-size: 24px;
    }
    
    .preorder-social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* SMOOTH MODAL ANIMATION */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.preorder-modal.active .preorder-modal-content {
    animation: modalFadeIn 0.3s ease;
}
