/* Golf Bump Contact Exchange Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #2d5016;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(45, 80, 22, 0.2), 0 0 0 1px rgba(74, 124, 89, 0.1);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    position: relative;
    z-index: 1;
}

/* Golf ball dimple texture for container */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(45, 80, 22, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 90% 90%, rgba(45, 80, 22, 0.03) 2px, transparent 2px);
    background-size: 40px 40px, 60px 60px;
    pointer-events: none;
    z-index: -1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.state-container {
    padding: 40px 30px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Loading State - Golf Ball Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8f5e8;
    border-top: 4px solid #2d5016;
    border-radius: 50%;
    animation: golfBallSpin 1s linear infinite;
    margin: 0 auto 20px;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(45, 80, 22, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(45, 80, 22, 0.1) 1px, transparent 1px);
    background-size: 8px 8px, 6px 6px;
}

.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0;
}

@keyframes golfBallSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Header - Golf Course Theme */
.header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    pointer-events: none;
}

.golf-bump-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.golf-bump-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.golf-bump-logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.owner-info {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Form Styles */
.contact-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2e7d32;
    position: relative;
}

.form-section h3::after {
    content: '⛳';
    margin-left: 8px;
    font-size: 16px;
}

.privacy-note {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #c4d9c4;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2d5016;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.privacy-icon {
    font-size: 16px;
    margin-top: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2e7d32;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
    color: #1a1a1a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background: #f8fff8;
}

.form-group input:disabled,
.form-group textarea:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

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

/* App Question */
.app-question p {
    font-weight: 500;
    margin-bottom: 12px;
    color: #2e7d32;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal;
    background: #ffffff;
}

.radio-group label:hover {
    border-color: #2e7d32;
    background-color: #f0f8f0;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
}

.radio-group input[type="radio"]:checked + label,
.radio-group label:has(input[type="radio"]:checked) {
    border-color: #2e7d32;
    background-color: #2d5016;
    color: white;
}

/* Consent Section */
.consent-section {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #c4d9c4;
    border-radius: 8px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #b0b0b0;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #4a7c59;
}

.consent-text {
    flex: 1;
}

.consent-text p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.consent-text p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e1e5f2;
}

.btn-secondary:hover {
    background: #e9e9e9;
    border-color: #d1d5db;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading.hidden {
    display: none;
}

/* Success State */
.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.app-download {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #c4d9c4;
    border-radius: 12px;
    text-align: center;
}

.app-download h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.app-download p {
    color: #666;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    transition: transform 0.2s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    height: 50px;
    width: auto;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 12px;
    }
    
    .state-container {
        padding: 30px 20px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .golf-bump-logo h1 {
        font-size: 20px;
    }
    
    .header h2 {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e3b1f 0%, #163e25 100%);
    }
    
    .container {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group textarea {
        background: #3a3a3a;
        border-color: #555;
        color: #2e7d32;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #667eea;
    }
    
    .privacy-note {
        background: #3a3a3a;
        border-color: #555;
        color: #b0b0b0;
    }
    
    .radio-group label {
        border-color: #555;
        background: #3a3a3a;
    }
    
    .radio-group label:hover {
        border-color: #667eea;
        background: #4a4a5a;
    }
    
    .consent-section {
        background: #3a3a3a;
        border-color: #555;
    }
    
    .app-download {
        background: #3a3a3a;
    }
    
    .btn-secondary {
        background: #3a3a3a;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .btn-secondary:hover {
        background: #4a4a4a;
        border-color: #666;
    }
}

/* Animation for form interactions */
.form-group {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox styling improvements */
.form-group input[type="checkbox"]:checked + label {
    color: #667eea;
}

/* Focus states for accessibility */
.btn:focus,
.form-group input:focus,
.form-group textarea:focus,
.consent-checkbox input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading state for submit button */
#submit-btn:disabled .btn-text {
    display: none;
}

#submit-btn:disabled .btn-loading {
    display: flex !important;
}
