/* Landing Pages Specific Styles */

/* Hero Section Updates */
.hero {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: block; /* Override any grid layout from main CSS */
}

/* Hero Background Images */
.hero-web-developers::before {
    background-image: url('https://img.inliner.ai/inliner-landing/modern-developer-workspace-coding-laptop-multiple-screens-blue-teal-gradient-background-professional-tech-environment_1920x1080.png');
    z-index: 1;
}

.hero-content-creators::before {
    background-image: url('https://img.inliner.ai/inliner-landing/creative-content-creation-workspace-social-media-marketing-tools-laptop-phone-camera-vibrant-colorful-background-modern-creative-studio_1920x1080.png');
    z-index: 1;
}

/* Responsive Hero Backgrounds */
@media (max-width: 768px) {
    .hero::before {
        background-position: center top;
    }
    
    .hero::after {
        background: rgba(255, 255, 255, 0.9);
    }
}

.hero h1 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-cta .btn-outline {
    background: transparent;
    border: 2px solid #4a6fa5;
    color: #4a6fa5;
}

.hero-cta .btn-outline:hover {
    background: #4a6fa5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
    width: 100%;
}

/* Override any conflicting grid rules from main CSS - removed to allow mobile stacking */

/* Ensure hero section has proper spacing and layout */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-signup {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.signup-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.signup-form h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.signup-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.signup-form .form-group {
    margin-bottom: 1.25rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.signup-form input[type="text"]:focus,
.signup-form input[type="email"]:focus,
.signup-form input[type="password"]:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.signup-form .checkbox-group {
    margin-bottom: 1rem;
}

.signup-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    line-height: 1.4;
}

.signup-form .checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.signup-form .btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.signup-form .form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Cloudflare Turnstile Styling */
.signup-form #hero-turnstile-container,
.signup-form #turnstile-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.signup-form #hero-turnstile-container iframe,
.signup-form #turnstile-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 4px;
}

/* Additional Turnstile styling for better appearance */
.signup-form #hero-turnstile-container > div,
.signup-form #turnstile-container > div {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Examples Section */
.examples {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.example-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.example-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.example-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.example-card:hover .example-card-image img {
    transform: scale(1.05);
}

.example-card-content {
    padding: 2rem;
}

.example-card-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.example-card-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.example-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    flex: 1;
}

.example-code code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #2c3e50;
    white-space: nowrap;
}

.code-domain {
    color: #e74c3c;
}

.code-project {
    color: #3498db;
}

.code-image-path {
    color: #27ae60;
}

.example-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.quick-tip {
    background: #f8f9fa;
    border-left: 4px solid #4a6fa5;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    color: #444;
}

.quick-tip strong {
    color: #2c3e50;
}

/* Lead Capture Form Styles */
.lead-capture-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
}

.form-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.form-logo img {
    max-width: 200px;
    height: auto;
}

.lead-capture-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.lead-capture-form input[type="text"],
.lead-capture-form input[type="email"],
.lead-capture-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.lead-capture-form input[type="text"]:focus,
.lead-capture-form input[type="email"]:focus,
.lead-capture-form input[type="password"]:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.lead-capture-form .checkbox-group {
    margin-bottom: 1rem;
    text-align: left;
}

.lead-capture-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    line-height: 1.4;
}

.lead-capture-form .checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lead-capture-form .checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lead-capture-form .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4a6fa5;
    border-color: #4a6fa5;
}

.lead-capture-form .checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lead-capture-form .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.lead-capture-form .btn-primary {
    background: linear-gradient(135deg, #4a6fa5, #5a7fb5);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.lead-capture-form .btn-primary:hover {
    background: linear-gradient(135deg, #3a5a8a, #4a6fa5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.lead-capture-form .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.lead-capture-form .form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.lead-capture-form #turnstile-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.lead-capture-form #turnstile-container > div,
.lead-capture-form #turnstile-container iframe {
    width: 100% !important;
    max-width: 300px;
}

/* Use Case Grid Updates */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.use-case-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.use-case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.use-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.use-case-card:hover .use-case-image img {
    transform: scale(1.05);
}

.use-case-content {
    padding: 2rem;
}

.use-case-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.use-case-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Logo styling for forms and CTA sections */
.form-logo,
.cta-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.form-logo img,
.cta-logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Responsive adjustments for example grid */
@media (max-width: 768px) {
    .example-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .example-card {
        margin: 0 1rem;
    }
    
    .example-card-content {
        padding: 1.5rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
    }
    
    .hero-signup {
        order: 2;
        margin-top: 2rem;
    }
    
    .signup-form {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .signup-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .use-case-content {
        padding: 1.5rem;
    }
    
    .example-card-content {
        padding: 1.5rem;
    }
    
    .use-case-image {
        height: 180px;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
        grid-template-columns: 1fr 1fr;
    }
    
    .signup-form {
        padding: 1.75rem;
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .signup-form {
        padding: 1.25rem;
    }
    
    .signup-form h3 {
        font-size: 1.25rem;
    }
    
    .signup-subtitle {
        font-size: 0.9rem;
    }
    
    .form-logo img,
    .cta-logo img {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .lead-capture-form {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }
    
    .form-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .lead-capture-form {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }
    
    .form-logo img {
        max-width: 120px;
    }
}

/* Comprehensive Mobile Layout Fixes */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile phones - Force single column layout */
@media (max-width: 768px) {
    .hero {
        display: block !important;
        min-height: auto !important;
        align-items: stretch !important;
        padding: 3rem 0 !important;
    }
    
    .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
        display: block !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    
    .hero-signup {
        order: 2;
        margin-top: 2rem;
        display: block !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
    
    .signup-form {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .signup-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 !important;
        display: block !important;
        min-height: auto !important;
        align-items: stretch !important;
    }
    
    .hero-grid {
        gap: 1.5rem;
        padding: 1rem 0;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .hero-content {
        order: 1;
        display: block !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    
    .hero-signup {
        order: 2;
        margin-top: 1.5rem;
        display: block !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
    
    .signup-form {
        padding: 1.25rem;
    }
    
    .signup-form h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.625rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    .hero {
        padding: 1.5rem 0 !important;
        display: block !important;
        min-height: auto !important;
        align-items: stretch !important;
    }
    
    .hero-grid {
        gap: 1rem;
        padding: 0.5rem 0;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .hero-content {
        display: block !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    
    .hero-signup {
        display: block !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
    
    .signup-form {
        padding: 1rem;
    }
    
    .signup-form h3 {
        font-size: 1.125rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Google OAuth Styles for Landing Pages */
.google-auth-section {
    margin: 20px 0;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 10px;
}

.btn-google {
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 16px;
}

.btn-google:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.btn-google i {
    font-size: 16px;
    color: #4285f4;
}

/* Override lead-capture-form border reset for Google buttons */
.lead-capture-form .btn-google {
    border: 1px solid #dadce0 !important;
}

/* Ensure Google buttons respect btn-large class */
.btn-google.btn-large {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
}
