/* ==========================================================================
   Connect Page Specific Styles
   ========================================================================== */

/* Connect Hero Section */
.connect-hero {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--coral-red) 50%, var(--electric-teal) 100%);
}

.connect-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(30, 213, 195, 0.3) 0%,
        transparent 25%,
        rgba(255, 90, 95, 0.3) 50%,
        transparent 75%,
        rgba(30, 213, 195, 0.3) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.connect-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.connect-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.connect-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.connect-main {
    padding: 5rem 0;
    background: var(--light-gray);
}

/* Contact Form Section */
.contact-form-section {
    margin-bottom: 5rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    color: var(--midnight-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--midnight-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-teal);
    box-shadow: 0 0 0 3px rgba(30, 213, 195, 0.1);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--coral-red), var(--electric-teal));
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    position: relative;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

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

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

/* Contact Methods */
.contact-methods {
    margin-bottom: 4rem;
}

.contact-methods h2 {
    text-align: center;
    color: var(--midnight-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.method-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.method-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--coral-red), var(--electric-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.method-card h3 {
    color: var(--midnight-blue);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.method-card p {
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.method-action {
    color: var(--coral-red);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Availability Section */
.availability {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.availability-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.availability-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--midnight-blue), var(--electric-teal));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.availability-text h3 {
    color: var(--midnight-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.availability-text p {
    color: var(--medium-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .connect-hero-title {
        font-size: 2.5rem;
    }
    
    .connect-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-methods h2 {
        font-size: 1.8rem;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .availability-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .availability-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .connect-hero-title {
        font-size: 2rem;
    }
    
    .connect-hero-subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .method-card {
        padding: 2rem 1.5rem;
    }
    
    .availability {
        padding: 2rem 1.5rem;
    }
}

/* HubSpot Form Custom Styling */
#hubspot-form-container {
    width: 100%;
}

/* Native HubSpot Frame Styling */
.hs-form-frame {
    width: 100% !important;
    min-height: 400px;
    border: none;
    background: transparent;
}

.hubspot-custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hubspot-custom-form .hs-form-field {
    margin-bottom: 1.5rem;
}

.hubspot-custom-form .hs-form-field label {
    color: var(--midnight-blue) !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
    display: block !important;
}

.hubspot-custom-form .hs-input {
    padding: 1rem !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-family: var(--font-secondary) !important;
    transition: all 0.3s ease !important;
    background: var(--white) !important;
    width: 100% !important;
}

.hubspot-custom-form .hs-input:focus {
    outline: none !important;
    border-color: var(--electric-teal) !important;
    box-shadow: 0 0 0 3px rgba(30, 213, 195, 0.1) !important;
}

.hubspot-custom-form .hs-button {
    background: linear-gradient(135deg, var(--coral-red), var(--electric-teal)) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 1.2rem 2rem !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
    width: 100% !important;
}

.hubspot-custom-form .hs-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3) !important;
}

.hubspot-custom-form .hs-error-msgs {
    color: #dc3545 !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
}

.hubspot-custom-form .submitted-message {
    background: #d4edda !important;
    color: #155724 !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
}

/* Hide HubSpot branding if desired */
.hubspot-custom-form .legal-consent-container {
    margin-top: 1rem;
}

.hubspot-custom-form .hs-richtext {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Captcha Styles */
.captcha-group {
    background: #f8f9fa;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.captcha-question {
    background: linear-gradient(135deg, var(--midnight-blue), var(--electric-teal));
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#captcha {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.captcha-refresh {
    background: var(--coral-red);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.captcha-refresh:hover {
    background: var(--electric-teal);
    transform: rotate(180deg);
}

.captcha-help {
    display: block;
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Captcha responsive design */
@media (max-width: 480px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .captcha-question {
        min-width: auto;
        text-align: center;
    }
    
    #captcha {
        max-width: none;
    }
    
    .captcha-refresh {
        align-self: center;
    }
}

/* ==========================================================================
   Dark Mode Support for Connect Page
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Hero Section */
    .connect-hero {
        background: linear-gradient(135deg, #2c3e50 0%, #ff6b6b 50%, #4ecdc4 100%);
    }
    
    .animated-gradient {
        background: linear-gradient(
            45deg,
            rgba(78, 205, 196, 0.2) 0%,
            transparent 25%,
            rgba(255, 107, 107, 0.2) 50%,
            transparent 75%,
            rgba(78, 205, 196, 0.2) 100%
        );
    }
    
    .connect-hero-title {
        color: #e0e0e0;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    }
    
    .connect-hero-subtitle {
        color: #d0d0d0;
    }
    
    /* Main Content */
    .connect-main {
        background: #121212;
    }
    
    /* Form Container */
    .form-container {
        background: #1e1e1e;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        border: 1px solid #333;
    }
    
    /* Form Header */
    .form-header h2 {
        color: #e0e0e0;
    }
    
    .form-header p {
        color: #a0a0a0;
    }
    
    /* Form Elements */
    .form-group label {
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #666;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        background: #333;
        border-color: #4ecdc4;
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
    }
    
    .form-group select option {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    /* Submit Button - Keep vibrant gradient */
    .submit-btn {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    }
    
    .submit-btn:hover {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
    
    .submit-btn:disabled {
        opacity: 0.5;
    }
    
    /* Form Messages */
    .form-message.success {
        background: #1e4620;
        color: #90ee90;
        border-color: #2d5f2e;
    }
    
    .form-message.error {
        background: #4a1a1a;
        color: #ff6b6b;
        border-color: #6a2a2a;
    }
    
    /* Contact Methods */
    .contact-methods h2 {
        color: #e0e0e0;
    }
    
    /* Method Cards */
    .method-card {
        background: #2a2a2a;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        border: 1px solid #3a3a3a;
    }
    
    .method-card:hover {
        background: #333;
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
        border-color: #444;
    }
    
    .method-card h3 {
        color: #e0e0e0;
    }
    
    .method-card p {
        color: #a0a0a0;
    }
    
    .method-action {
        color: #ff6b6b;
    }
    
    /* Method Icons - Keep bright gradient */
    .method-icon {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    }
    
    /* Availability Section */
    .availability {
        background: #1e1e1e;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        border: 1px solid #333;
    }
    
    .availability-icon {
        background: linear-gradient(135deg, #2c3e50, #4ecdc4);
    }
    
    .availability-text h3 {
        color: #e0e0e0;
    }
    
    .availability-text p {
        color: #a0a0a0;
    }
    
    /* HubSpot Form Dark Mode */
    .hubspot-custom-form .hs-form-field label {
        color: #e0e0e0 !important;
    }
    
    .hubspot-custom-form .hs-input {
        background: #2a2a2a !important;
        border-color: #444 !important;
        color: #e0e0e0 !important;
    }
    
    .hubspot-custom-form .hs-input:focus {
        background: #333 !important;
        border-color: #4ecdc4 !important;
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2) !important;
    }
    
    .hubspot-custom-form .hs-input::placeholder {
        color: #666 !important;
    }
    
    .hubspot-custom-form .hs-button {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4) !important;
    }
    
    .hubspot-custom-form .hs-button:hover {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
    }
    
    .hubspot-custom-form .hs-error-msgs {
        color: #ff6b6b !important;
    }
    
    .hubspot-custom-form .submitted-message {
        background: #1e4620 !important;
        color: #90ee90 !important;
    }
    
    .hubspot-custom-form .hs-richtext {
        color: #a0a0a0 !important;
    }
    
    /* Captcha Dark Mode */
    .captcha-group {
        background: #252525;
        border-color: #3a3a3a;
    }
    
    .captcha-question {
        background: linear-gradient(135deg, #2c3e50, #4ecdc4);
        color: white;
    }
    
    #captcha {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    #captcha:focus {
        background: #333;
        border-color: #4ecdc4;
    }
    
    .captcha-refresh {
        background: #ff6b6b;
    }
    
    .captcha-refresh:hover {
        background: #4ecdc4;
    }
    
    .captcha-help {
        color: #888;
    }
    
    /* Field Error Messages */
    .field-error {
        color: #ff6b6b !important;
    }
    
    /* Form Progress Bar (if exists) */
    .form-progress .progress-bar {
        background: #2a2a2a;
    }
    
    .form-progress .progress-fill {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    }
    
    .form-progress .progress-text {
        color: #a0a0a0;
    }
}