/* Professional Form Styles */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --border-color: #dadce0;
    --text-color: #202124;
    --secondary-text: #5f6368;
    --error-color: #d93025;
    --success-color: #188038;
    --background: #f8f9fa;
    --card-background: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

body {
    background: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1.tagline {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

.setup-promise {
    background: var(--card-background);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.setup-promise p {
    margin: 8px 0;
    color: var(--secondary-text);
}

.form-section {
    background: var(--card-background);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.form-section h2 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    background: var(--card-background);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.holes-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.hole-count {
    margin-left: auto;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.holes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hole-input {
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--background);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.hole-number {
    color: var(--secondary-text);
    font-weight: 500;
    text-align: center;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 1rem;
}

.submit-note {
    text-align: center;
    color: var(--secondary-text);
    margin-top: 16px;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .hole-input {
        grid-template-columns: 30px 1fr 60px;
        gap: 8px;
    }
}

/* Loading State */
.btn.loading {
    background-image: linear-gradient(45deg, var(--primary-color) 25%, var(--primary-hover) 25%, var(--primary-hover) 50%, var(--primary-color) 50%, var(--primary-color) 75%, var(--primary-hover) 75%, var(--primary-hover));
    background-size: 1rem 1rem;
    animation: loading-stripes 1s linear infinite;
}

@keyframes loading-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1rem 0;
    }
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h2 {
    color: #2c3e50;
    font-size: 2em;
    margin: 1.5em 0 1em;
}

.description {
    font-size: 1.2em;
    margin-bottom: 2em;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    width: 250px;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.feature-card .emoji {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.feature-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.trial-offer {
    background: linear-gradient(135deg, #f1f8ff 0%, #e8f4ff 100%);
    padding: 30px;
    margin: 40px auto;
    border-radius: 10px;
    border: 2px solid #3498db;
    position: relative;
    max-width: 800px;
    overflow: hidden;
    text-align: center;
}

.trial-offer::before {
    content: "MOST POPULAR";
    position: absolute;
    top: 20px;
    right: -55px;
    background: #e74c3c;
    color: white;
    padding: 10px 50px;
    transform: rotate(45deg);
    font-size: 0.5em;
    font-weight: bold;
}

.trial-offer h2 {
    color: #2c3e50;
    margin-top: 0;
}

.trial-features {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
}

.trial-features p {
    margin: 15px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trial-btn { 
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    font-size: 1.2em;
    padding: 20px 40px;
}

.trial-offer .btn.trial-btn {
    display: block;
    margin: 1rem auto;
}

/* Basic - Safe, approachable green */
.basic-btn { 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

.basic-btn:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

/* Premium - Luxury purple */
.premium-btn { 
    background: linear-gradient(135deg, #9b59b6 0%, #8E44AD 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px rgba(142, 68, 173, 0.2);
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #8E44AD 0%, #703688 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(142, 68, 173, 0.3);
}

/* Deluxe - Professional blue */
.deluxe-btn { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

.deluxe-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #216a94 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
}

th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f1f8ff;
}

.analytics-link button {
    background: none;
    border: none;
    color: #3498db;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.analytics-link button:hover {
    color: #2980b9;
    text-decoration: underline;
}

.analytics-dialog {
    padding: 0;
    border: none;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
}

.analytics-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.dialog-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    position: relative;
}

.dialog-content h3 {
    margin-top: 0;
    color: #3498db;
    font-size: 1.8em;
}

.analytics-features {
    text-align: left;
    font-size: 1.1em;
}

.analytics-features p {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.close:hover {
    color: white;
    transform: rotate(90deg);
}

.analytics-footer {
    background: #2c3e50;
    color: white;
    padding: 30px;
    margin-top: 40px;
}

.analytics-footer h3 {
    margin-top: 0;
    color: #3498db;
}

.analytics-footer p {
    margin: 10px 0;
}

/* Signup Form Styles */
.signup-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
    }

    .container {
        margin: 0;
        padding: 15px;
        border-radius: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .signup-form {
        padding: 0;
    }

    .form-section {
        margin: 0 0 20px 0;
        padding: 20px;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .holes-container {
        width: 100%;
        box-sizing: border-box;
    }

    .hole-input {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 35px 1fr 70px;
        gap: 8px;
    }

    .hole-input input {
        width: 100%;
        box-sizing: border-box;
        min-width: 0; /* Prevents input from overflowing */
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.8em;
        padding: 0 10px;
    }

    .setup-promise {
        padding: 20px;
        margin: 20px 0;
    }

    .setup-promise p {
        font-size: 1em;
    }

    .form-section h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

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

    .form-group label {
        font-size: 1em;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 1em;
    }

    .holes-controls {
        padding: 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .holes-controls .btn {
        padding: 10px 20px;
        font-size: 0.9em;
        flex: 1;
        min-width: 120px;
    }

    .hole-count {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .submit-btn {
        padding: 15px;
        font-size: 1.1em;
    }

    .submit-note {
        font-size: 0.9em;
        padding: 0 10px;
    }

    /* Adjust table for mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    /* Adjust feature cards for mobile */
    .feature-cards {
        padding: 10px;
    }

    .feature-card {
        width: 100%;
        margin: 10px 0;
    }

    /* Adjust trial offer for mobile */
    .trial-offer {
        margin: 20px 10px;
        padding: 20px;
    }

    .trial-features {
        padding: 0 10px;
    }

    /* Adjust dialog for mobile */
    .analytics-dialog {
        width: 95%;
        margin: 10px;
    }

    .dialog-content {
        padding: 20px;
    }
}

/* Additional small screen adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }

    .form-section h2 {
        font-size: 1.2em;
    }

    .hole-input {
        grid-template-columns: 30px 1fr 60px;
        gap: 5px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 1em;
    }
}

/* Ensure form inputs are touch-friendly */
@media (hover: none) {
    input, 
    textarea, 
    select, 
    button {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }

    .form-group input,
    .form-group textarea {
        padding: 15px;
    }

    .btn {
        padding: 15px 25px;
    }
}

.demo-btn {
    background: #8e44ad;
    border: 2px solid #6c3483;
    color: white;
    font-weight: bold;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(142, 68, 173, 0.2);
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: #6c3483;
    border-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(142, 68, 173, 0.3);
}

.demo-section {
    margin: 40px 0;
    padding: 35px;
    background: linear-gradient(135deg, #f1f8ff 0%, #e8f4ff 100%);
    border-radius: 15px;
    border: 2px solid #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.demo-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    text-align: center;
}

.demo-links {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.demo-info {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.demo-info p {
    color: #2c3e50;
    font-weight: 500;
}

.demo-info ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.demo-info li {
    margin: 12px 0;
    color: #34495e;
    font-size: 1.1em;
}

.demo-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .demo-section {
        margin: 20px 0;
        padding: 25px;
        background: linear-gradient(135deg, #f1f8ff 0%, #e8f4ff 100%);
        border: 2px solid #3498db;
    }
    
    .demo-links {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 25px;
        padding: 0;
    }
    
    .demo-info {
        text-align: center;
        background: rgba(255, 255, 255, 0.7);
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .demo-btn {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

.hole-input input {
    padding-right: 16px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: auto;
    height: 400px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background 0.3s ease;
}

.carousel-button:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .carousel {
        max-width: 90%;
        margin: 20px auto;
    }
    
    .carousel-slide img {
        height: 475px;
    }
    
    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

.support-section {
    margin: 20px 0;
    text-align: center;
}

.support-link {
    color: #007bff;
    text-decoration: underline;
}

.support-link:hover {
    color: #0056b3;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4ff 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "⛳";
    position: absolute;
    font-size: 120px;
    opacity: 0.1;
    top: -20px;
    right: -20px;
    transform: rotate(15deg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-size: 3.5em;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-tagline {
    font-size: 1.8em;
    color: #34495e;
    margin-bottom: 1.5em;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-size: 1.2em;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

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

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        border-radius: 0;
    }

    .main-title {
        font-size: 2.5em;
    }

    .hero-tagline {
        font-size: 1.4em;
    }
}