/* ==========================================================================
   CTA SECTION COMPONENT - Reusable across pages
   ========================================================================== */

/* Base Section Styles */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Background Variations */
.cta-section[data-background="light"] {
    background: #f8fafc;
    color: #1a202c;
}

.cta-section[data-background="dark"] {
    background: #1a202c;
    color: #fff;
}

.cta-section[data-background="blue"] {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
}

.cta-section[data-background="gradient"] {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
    color: #1a202c;
}

/* Container */
.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Content Layout */
.cta-content {
    display: grid;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

/* Layout Variations */
.cta-section[data-layout="split"] .cta-content {
    grid-template-columns: 1fr 1fr;
}

.cta-section[data-layout="centered"] .cta-content {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section[data-layout="form-right"] .cta-content {
    grid-template-columns: 1.2fr 1fr;
}

.cta-section[data-layout="form-left"] .cta-content {
    grid-template-columns: 1fr 1.2fr;
}

.cta-section[data-layout="form-left"] .cta-text-content {
    order: 2;
}

.cta-section[data-layout="form-left"] .cta-form-content {
    order: 1;
}

/* Text Content */
.cta-text-content {
    max-width: 500px;
}

/* CTA sub-heading styling now handled by global sub-heading-text.css */

.cta-section[data-background="dark"] h4.sub-heading-text,
.cta-section[data-background="blue"] h4.sub-heading-text {
    color: #60a5fa;
}

.cta-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: inherit;
}

.cta-paragraph {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: inherit;
}

.cta-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA Actions */
.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    min-width: 200px;
}

/* Form Content */
.cta-form-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-section[data-background="light"] .cta-form-content {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-section[data-background="dark"] .cta-form-content {
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
}

/* Form sub-heading styling now handled by global sub-heading-text.css */

.form-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    line-height: 1.3;
}

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

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

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 0 1rem 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #1a202c;
}

.form-control:focus {
    outline: none;
    border-bottom-color: #0073aa;
}

.form-control::placeholder {
    color: #64748b;
    opacity: 1;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1rem;
}

/* Form Actions */
.form-actions {
    margin-top: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Decorative Elements */
.cta-decorative {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-circles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 115, 170, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
}

.circle-4 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 5%;
    animation-delay: 3s;
}

.circle-5 {
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    background: rgba(0, 115, 170, 0.05);
    animation: rotate 12s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(0, 115, 170, 0.05);
    top: 15%;
    right: 15%;
    background: none;
}

.shape-square {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 15%;
    transform: rotate(45deg);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-content {
        gap: 3rem;
    }
    
    .cta-heading {
        font-size: 2rem;
    }
    
    .cta-form-content {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .cta-section[data-layout="split"] .cta-content,
    .cta-section[data-layout="form-right"] .cta-content,
    .cta-section[data-layout="form-left"] .cta-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .cta-section[data-layout="form-left"] .cta-text-content,
    .cta-section[data-layout="form-left"] .cta-form-content {
        order: initial;
    }
    
    .cta-heading {
        font-size: 1.75rem;
    }
    
    .cta-form-content {
        padding: 2rem;
        border-radius: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-text-content {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-heading {
        font-size: 1.5rem;
    }
    
    .cta-form-content {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-heading {
        font-size: 1.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-btn {
        min-width: auto;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .cta-decorative,
    .cta-form-content {
        display: none;
    }
    
    .cta-section {
        background: white !important;
        color: black !important;
        padding: 2rem 0;
    }
}
