/*
Theme Name: HireTalent LAT Waitlist Theme
Theme URI: https://hiretalent.lat
Author: DIGITAL MUNDO LLC
Author URI: https://goldpenguin.org
Description: Dedicated waitlist theme for HireTalent.lat - connecting Latin American talent with global opportunities.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hiretalent-waitlist
Tags: waitlist, responsive, clean, modern, job-portal
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

h3 {
    font-size: 1.875rem;
    font-weight: 700;
}

p {
    font-weight: 400;
    line-height: 1.7;
}

/* Links */
a {
    color: #B8860B;
    text-decoration: none;
}

a:hover {
    color: #DAA520;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.waitlist-header {
    background: linear-gradient(135deg, #FFEE58 0%, #FFF176 100%);
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn.active {
    background: #FFEE58;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn:hover {
    color: #333;
}

.lang-btn:not(.active):hover {
    background: rgba(255, 238, 88, 0.5);
}

.waitlist-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.waitlist-header .tagline {
    font-size: 1.4rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.waitlist-header .subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.waitlist-main {
    padding: 80px 0 40px 0;
    min-height: 60vh;
}

.waitlist-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* User Type Switcher */
.user-type-switcher {
    display: flex;
    background: #f8f9fa;
    margin: 0;
    border-radius: 0;
}

.user-type-btn {
    flex: 1;
    padding: 25px 30px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: -0.01em;
}

.user-type-btn.active {
    background: #FFEE58;
    color: #333;
}

.user-type-btn:hover {
    background: #fff176;
    color: #333;
}

.user-type-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.user-type-btn.active::after {
    background: #F57C00;
}

/* Form Container */
.form-container {
    padding: 50px;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.03em;
}

.form-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Form Styles */
.waitlist-form {
    margin-top: 30px;
}

/* Override default form styles */
.waitlist-form input[type="text"],
.waitlist-form input[type="email"],
.waitlist-form input[type="tel"],
.waitlist-form select,
.waitlist-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 20px;
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
    border-color: #FFEE58;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 238, 88, 0.2);
}

.waitlist-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.waitlist-form button,
.waitlist-form input[type="submit"] {
    background: #007cba;
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    text-transform: none;
    letter-spacing: normal;
}

.waitlist-form button:hover,
.waitlist-form input[type="submit"]:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Features Section */
.features-section {
    background: #ffffff;
    padding: 40px 0 80px 0;
}

.features-content {
    display: none;
}

.features-content.active {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFEE58 0%, #FFC107 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.waitlist-footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.waitlist-footer p {
    margin-bottom: 10px;
}

.waitlist-footer a {
    color: #FFEE58;
    text-decoration: none;
}

.waitlist-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .waitlist-header h1 {
        font-size: 2.5rem;
    }
    
    .waitlist-header .tagline {
        font-size: 1.2rem;
    }
    
    .language-toggle {
        top: 15px;
        right: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .user-type-btn {
        padding: 20px 15px;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .waitlist-header h1 {
        font-size: 2rem;
    }
    
    .waitlist-header {
        padding: 30px 0;
    }
    
    .waitlist-main {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Custom WS Form Integration Styles */
.ws-form-wrapper {
    margin-top: 20px;
}

/* NUCLEAR OPTION: Force WS Form to expand completely */
.waitlist-form,
.waitlist-form *,
.waitlist-form .ws-form,
.waitlist-form .wsf-form,
.waitlist-form .wsf-wrapper,
.waitlist-form .wsf-container,
.waitlist-form .wsf-grid,
.waitlist-form .wsf-sections,
.waitlist-form .wsf-section,
.waitlist-form .wsf-groups,
.waitlist-form .wsf-group,
.waitlist-form .wsf-fields,
.waitlist-form .wsf-field-wrapper,
.waitlist-form .wsf-field,
.waitlist-form .wsf-row,
.waitlist-form .wsf-col,
.waitlist-form .wsf-column,
.waitlist-form .wsf-columns,
.waitlist-form .wsf-fieldset,
.waitlist-form .wsf-legend,
.waitlist-form div[class*="wsf"],
.waitlist-form div[id*="ws-form"] {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
}

/* Override display properties that might constrain width */
.waitlist-form .wsf-grid,
.waitlist-form .wsf-row,
.waitlist-form .wsf-columns {
    display: block !important;
    width: 100% !important;
}

/* Target any possible flex containers */
.waitlist-form [style*="display: flex"],
.waitlist-form [style*="display:flex"] {
    display: block !important;
    width: 100% !important;
}

/* Override any width constraints */
.waitlist-form [style*="width"],
.waitlist-form [style*="max-width"],
.waitlist-form [style*="min-width"] {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Force container to fill parent */
.waitlist-form {
    width: 100% !important;
    display: block !important;
    overflow: visible !important;
}

/* Ensure all form elements expand */
.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea,
.waitlist-form .wsf-field input,
.waitlist-form .wsf-field select,
.waitlist-form .wsf-field textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
}

/* Ensure form buttons also expand and style properly */
.waitlist-form .wsf-button,
.waitlist-form button,
.waitlist-form input[type="submit"] {
    width: 100% !important;
    background: #007cba !important;
    color: #ffffff !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.waitlist-form .wsf-button:hover,
.waitlist-form button:hover,
.waitlist-form input[type="submit"]:hover {
    background: #005a87 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3) !important;
}

/* Hide WS Form labels if needed (since we have our own) */
.waitlist-form .ws-form label {
    display: none;
}

/* Additional nuclear overrides for stubborn WS Form containers */
.waitlist-form table,
.waitlist-form tbody,
.waitlist-form tr,
.waitlist-form td {
    width: 100% !important;
    display: block !important;
}

/* Override Bootstrap or framework constraints if WS Form uses them */
.waitlist-form .container,
.waitlist-form .container-fluid,
.waitlist-form .row,
.waitlist-form .col,
.waitlist-form [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Target any possible CSS Grid layouts */
.waitlist-form [style*="grid"],
.waitlist-form [style*="Grid"] {
    display: block !important;
    width: 100% !important;
}

/* Force override any JavaScript-set inline widths */
.waitlist-form [style] {
    width: 100% !important;
}

/* Last resort: Override everything with universal selector */
.waitlist-form > * > * > * {
    width: 100% !important;
}

/* Success/Error Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
