/* ═══════════════════════════════════════════════════
   ROTAR Soluciones Industriales - Premium v2.0
   World-Class Industrial Design
   ═══════════════════════════════════════════════════ */

:root {
    --rsi-primary: #0a192f;
    --rsi-accent: #00AEEF;
    --rsi-orange: #ff8c00;
    --rsi-dark: #0d1b2a;
    --rsi-light: #f8fafc;
    --rsi-card-radius: 20px;
    --rsi-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

.rsi-section {
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* Eliminar padding de columnas Elementor que contienen esta sección */
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 2px !important;
}

/* ═══════════════════════════════════════════════════
   HERO WITH VIDEO BACKGROUND
   ═══════════════════════════════════════════════════ */
.rsi-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}

.rsi-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(1.1);
    z-index: 0;
}

/* Fallback image when video not loaded */
.rsi-hero-bg-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: 0;
}

.rsi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 174, 239, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 140, 0, 0.08) 0%, transparent 60%),
        linear-gradient(180deg,
            rgba(10, 25, 47, 0.65) 0%,
            rgba(10, 25, 47, 0.35) 40%,
            rgba(10, 25, 47, 0.75) 100%);
    z-index: 1;
}

/* Bottom gradient fade to white */
.rsi-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, #fff 100%);
    z-index: 2;
}

/* ── Floating Particles ── */
.rsi-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.rsi-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 174, 239, 0.5);
    border-radius: 50%;
    animation: rsiFloat linear infinite;
}

.rsi-particle:nth-child(2) { width: 4px; height: 4px; background: rgba(255, 140, 0, 0.4); }
.rsi-particle:nth-child(3) { width: 2px; height: 2px; }
.rsi-particle:nth-child(5) { width: 5px; height: 5px; background: rgba(0, 174, 239, 0.3); }

@keyframes rsiFloat {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(30px); opacity: 0; }
}

/* ── Hero Content ── */
.rsi-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 80px 24px 120px;
    animation: rsiFadeUp 1.2s var(--rsi-transition) both;
}

.rsi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: rsiFadeUp 1s 0.2s var(--rsi-transition) both;
}

.rsi-hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00AEEF;
    box-shadow: 0 0 12px rgba(0, 174, 239, 0.8);
    animation: rsiPulse 2s infinite;
}

.rsi-hero h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 5.5vw, 62px);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin: 0 0 20px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    animation: rsiFadeUp 1s 0.35s var(--rsi-transition) both;
}

.rsi-hero h2 .rsi-highlight {
    background: linear-gradient(135deg, #00AEEF 0%, #00d4ff 50%, #ff8c00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rsiGradientShift 4s ease infinite;
}

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

.rsi-hero p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(17px, 2vw, 21px);
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto 36px;
    line-height: 1.65;
    max-width: 650px;
    animation: rsiFadeUp 1s 0.5s var(--rsi-transition) both;
}

.rsi-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00AEEF, #0077b6);
    color: #fff !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.4s var(--rsi-transition);
    box-shadow: 0 8px 32px rgba(0, 174, 239, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: rsiFadeUp 1s 0.65s var(--rsi-transition) both;
    position: relative;
    overflow: hidden;
}

.rsi-hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.rsi-hero-cta:hover::before {
    left: 100%;
}

.rsi-hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 174, 239, 0.55);
    color: #fff !important;
}

.rsi-hero-cta svg {
    transition: transform 0.3s;
}

.rsi-hero-cta:hover svg {
    transform: translateX(5px);
}

/* ── Stats Bar ── */
.rsi-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: rsiFadeUp 1s 0.8s var(--rsi-transition) both;
}

.rsi-stat {
    text-align: center;
    position: relative;
}

.rsi-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 174, 239, 0.4);
}

.rsi-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    display: block;
}

/* ═══════════════════════════════════════════════════
   TRUST BADGES BAR
   ═══════════════════════════════════════════════════ */
.rsi-trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 50px 20px 60px;
    background: #fff;
    position: relative;
    z-index: 5;
}

.rsi-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Outfit', sans-serif;
}

.rsi-trust-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.08), rgba(0, 174, 239, 0.03));
    border: 1px solid rgba(0, 174, 239, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.rsi-trust-item:hover .rsi-trust-icon {
    background: linear-gradient(135deg, #00AEEF, #0077b6);
    border-color: #00AEEF;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.25);
}

.rsi-trust-icon svg {
    width: 26px;
    height: 26px;
    fill: #00AEEF;
    transition: fill 0.3s;
}

.rsi-trust-item:hover .rsi-trust-icon svg {
    fill: #fff;
}

.rsi-trust-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--rsi-primary);
}

.rsi-trust-text span {
    font-size: 13px;
    color: #64748b;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADING
   ═══════════════════════════════════════════════════ */
.rsi-section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 56px;
    padding: 0 20px;
}

.rsi-section-heading h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--rsi-primary);
    margin: 0 0 16px;
    line-height: 1.15;
}

.rsi-section-heading h3::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #00AEEF, #ff8c00);
    border-radius: 4px;
    margin: 18px auto 0;
}

.rsi-section-heading p {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #64748b;
    line-height: 1.65;
    margin: 18px 0 0;
}

/* ═══════════════════════════════════════════════════
   INDUSTRY CARDS GRID
   ═══════════════════════════════════════════════════ */
.rsi-grid-wrapper {
    max-width: 1340px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.rsi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rsi-card {
    position: relative;
    border-radius: var(--rsi-card-radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.5s, transform 0.5s var(--rsi-transition);
}

.rsi-card:hover {
    box-shadow: 0 20px 50px rgba(0, 174, 239, 0.2), 0 0 0 1px rgba(0, 174, 239, 0.15);
    transform: translateY(-8px);
}

.rsi-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--rsi-transition), filter 0.8s;
    filter: brightness(0.55) saturate(1.0);
}

.rsi-card:hover .rsi-card-img {
    transform: scale(1.15);
    filter: brightness(0.35) saturate(1.3);
}

.rsi-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 25%,
            rgba(10, 25, 47, 0.92) 100%);
    z-index: 1;
    transition: background 0.5s;
}

.rsi-card:hover .rsi-card-overlay {
    background: linear-gradient(180deg,
            rgba(0, 174, 239, 0.08) 0%,
            rgba(10, 25, 47, 0.97) 80%);
}

/* Glowing top border on hover */
.rsi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00AEEF, #ff8c00);
    z-index: 3;
    transform: scaleX(0);
    transition: transform 0.5s var(--rsi-transition);
    transform-origin: left;
}

.rsi-card:hover::after {
    transform: scaleX(1);
}

.rsi-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 30px 24px;
    transform: translateY(24px);
    transition: transform 0.5s var(--rsi-transition);
}

.rsi-card:hover .rsi-card-body {
    transform: translateY(0);
}

.rsi-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.4s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rsi-card-icon svg {
    width: 24px;
    height: 24px;
    fill: #00AEEF;
    transition: fill 0.3s;
}

.rsi-card:hover .rsi-card-icon {
    background: linear-gradient(135deg, #00AEEF, #0077b6);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.35);
}

.rsi-card:hover .rsi-card-icon svg {
    fill: #fff;
}

.rsi-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.rsi-card-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin: 0 0 18px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s 0.1s;
}

.rsi-card:hover .rsi-card-desc {
    opacity: 1;
    transform: translateY(0);
}

.rsi-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #00AEEF !important;
    text-decoration: none !important;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s 0.15s;
}

.rsi-card:hover .rsi-card-link {
    opacity: 1;
    transform: translateY(0);
}

.rsi-card-link:hover {
    color: #ff8c00 !important;
}

.rsi-card-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.rsi-card-link:hover svg {
    transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════
   BOTTOM CTA BANNER
   ═══════════════════════════════════════════════════ */
.rsi-bottom-cta {
    background: linear-gradient(135deg, var(--rsi-primary) 0%, #172a45 50%, #0d2137 100%);
    border-radius: 24px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    max-width: 1340px;
    margin: 0 auto 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 25, 47, 0.3);
}

.rsi-bottom-cta::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.1), transparent 65%);
    pointer-events: none;
}

.rsi-bottom-cta::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.07), transparent 65%);
    pointer-events: none;
}

.rsi-bottom-cta-text {
    flex: 1;
    z-index: 1;
}

.rsi-bottom-cta-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.rsi-bottom-cta-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

.rsi-bottom-cta .rsi-hero-cta {
    flex-shrink: 0;
    z-index: 1;
    background: linear-gradient(135deg, #ff8c00, #dd6b20);
    box-shadow: 0 8px 32px rgba(255, 140, 0, 0.4);
}

.rsi-bottom-cta .rsi-hero-cta:hover {
    box-shadow: 0 16px 48px rgba(255, 140, 0, 0.55);
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes rsiFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rsiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.rsi-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--rsi-transition),
        transform 0.7s var(--rsi-transition),
        box-shadow 0.5s, all 0.5s;
}

.rsi-card.rsi-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .rsi-grid { grid-template-columns: repeat(3, 1fr); }
    .rsi-trust-bar { gap: 24px; }
}

@media (max-width: 800px) {
    .rsi-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rsi-hero { min-height: 480px; }
    .rsi-hero-content { padding: 60px 20px 100px; }
    .rsi-stats-bar { gap: 28px; }
    .rsi-stat-number { font-size: 30px; }
    .rsi-trust-bar { gap: 20px; padding: 36px 16px 44px; }
    .rsi-bottom-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        margin: 0 16px 50px;
        border-radius: 20px;
    }
    .rsi-card-title { font-size: 18px; }
}

@media (max-width: 500px) {
    .rsi-grid { grid-template-columns: 1fr; gap: 16px; }
    .rsi-card { aspect-ratio: 16 / 10; }
    .rsi-hero-content { padding: 50px 16px 90px; }
    .rsi-hero { min-height: 420px; }
    .rsi-grid-wrapper { padding: 0 12px; }
    .rsi-trust-bar { flex-direction: column; align-items: center; gap: 16px; }
}

/* ═══════════════════════════════════════════════════
   CONTACT MODAL
   ═══════════════════════════════════════════════════ */
.rsi-modal-overlay {
    display: none !important;
    visibility: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(10, 25, 47, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 0;
    transition: opacity 0.35s ease;
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: none !important;
}

.rsi-modal-overlay.rsi-modal-active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
    animation: rsiModalFadeIn 0.35s ease both;
}

@keyframes rsiModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rsi-modal {
    background: #fff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 580px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 40px 36px !important;
    position: relative !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 174, 239, 0.08) !important;
    animation: rsiModalSlideUp 0.4s var(--rsi-transition) both;
    margin: 0 !important;
    float: none !important;
    text-align: left !important;
    color: #0a192f !important;
}

@keyframes rsiModalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.rsi-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.rsi-modal-close:hover {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
    transform: rotate(90deg);
}

/* ── Modal Header ── */
.rsi-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.rsi-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.1), rgba(0, 174, 239, 0.04));
    border: 1px solid rgba(0, 174, 239, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.rsi-modal-icon svg {
    width: 32px;
    height: 32px;
    stroke: #00AEEF;
}

.rsi-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--rsi-primary);
    margin: 0 0 8px;
}

.rsi-modal-header p {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* ── Form ── */
.rsi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rsi-form-group {
    margin-bottom: 18px;
}

.rsi-form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--rsi-primary);
    margin-bottom: 6px;
}

.rsi-form-group input,
.rsi-form-group textarea,
.rsi-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--rsi-primary);
    background: #f8fafc;
    transition: all 0.3s;
    box-sizing: border-box;
    outline: none;
}

.rsi-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

.rsi-form-group select:invalid,
.rsi-form-group select option[value=""] {
    color: #a0aec0;
}

.rsi-form-group select option {
    color: var(--rsi-primary);
    padding: 8px;
}

.rsi-form-group input:focus,
.rsi-form-group textarea:focus,
.rsi-form-group select:focus {
    border-color: #00AEEF;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

.rsi-form-group input::placeholder,
.rsi-form-group textarea::placeholder {
    color: #a0aec0;
}

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

.rsi-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    margin-bottom: 16px;
}

.rsi-form-submit {
    width: 100%;
    padding: 14px 24px;
    border: none !important;
    border-radius: 14px;
    background: linear-gradient(135deg, #00AEEF, #0077b6) !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(0, 174, 239, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

.rsi-form-submit,
.rsi-form-submit span,
.rsi-form-submit .rsi-submit-text,
.rsi-form-submit .rsi-submit-loader,
.rsi-form-submit svg {
    color: #fff !important;
    fill: #fff !important;
}

.rsi-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 174, 239, 0.45);
}

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

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

.rsi-submit-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Success State ── */
.rsi-modal-success-state {
    text-align: center;
    padding: 20px 0;
}

.rsi-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: rsiSuccessPop 0.5s var(--rsi-transition) both;
}

.rsi-success-icon svg {
    width: 80px;
    height: 80px;
}

@keyframes rsiSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.rsi-modal-success-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #25d366;
    margin: 0 0 12px;
}

.rsi-modal-success-state p {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #64748b;
    margin: 0 0 28px;
    line-height: 1.6;
}

.rsi-modal-success-state .rsi-form-submit {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.3);
}

/* ── CTA Button style for the bottom banner ── */
#rsi-open-contact-modal,
#rsi-open-contact-modal span,
#rsi-open-contact-modal svg {
    border: none !important;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: #fff !important;
    fill: none !important;
    stroke: #fff !important;
}

/* Force white on ALL .rsi-hero-cta buttons/links */
.rsi-hero-cta,
.rsi-hero-cta:link,
.rsi-hero-cta:visited,
.rsi-hero-cta:active,
.rsi-hero-cta:focus,
.rsi-bottom-cta .rsi-hero-cta,
.rsi-bottom-cta .rsi-hero-cta:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Modal Responsive ── */
@media (max-width: 600px) {
    .rsi-modal {
        padding: 28px 20px;
        border-radius: 20px;
        max-height: 85vh;
    }
    .rsi-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .rsi-modal-header h3 { font-size: 22px; }
}
