/*
 * Super App and Proposal page styles.
 * Ported from the uc-developer WordPress theme (custom.css ranges 263-697 and 1065-1520).
 * Used by ProtectedPages generated via lib/tasks/super_app.rake and the
 * hand-imported proposal pages (e.g. afscme-council-2-proposal).
 */

:root {
  --wp--preset--color--primary: #1b2a4a;
  --wp--preset--color--accent: #e8a838;
  --wp--preset--color--accent-light: #f0dca8;
  --wp--preset--color--light: #f5f5f5;
  --wp--preset--color--muted: #666;
}

.uc-hero {
    position: relative;
    overflow: hidden;
}

/* Animated hero for inner pages (wp-block-group based) */
.uc-animated-hero {
    position: relative;
    overflow: hidden;
}

.uc-animated-hero::before,
.uc-animated-hero::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
}

.uc-animated-hero::before {
    background: #e8a838;
    top: -10%;
    left: -10%;
    animation: uc-glow-1 8s ease-in-out infinite alternate;
}

.uc-animated-hero::after {
    background: #111;
    bottom: -10%;
    right: -10%;
    animation: uc-glow-2 10s ease-in-out infinite alternate;
}

.uc-animated-hero > * {
    position: relative;
    z-index: 2;
}

.uc-hero-content {
    position: relative;
    z-index: 2;
}

/* iPhone Frame */
.uc-iphone {
    position: relative;
    width: 350px;
    height: 714px;
    margin: 0 auto;
    background: transparent;
}

.uc-iphone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1d1d1f;
    border-radius: 48px;
    padding: 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 1px 1px rgba(255,255,255,0.05);
}

.uc-iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    background: #000;
}

/* Dynamic Island */
.uc-iphone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 24px;
    background: #1d1d1f;
    border-radius: 20px;
    z-index: 10;
}

/* Screenshot Carousel */
.uc-phone-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Feature cards */
.uc-feature-card {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 2rem;
}

.uc-feature-card h3 {
    color: #1b2a4a;
    font-size: 1.3rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid #e2e5ea;
}

.uc-feature-card p {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Logo marquee */
.uc-logo-marquee {
    --marquee-h: 80px;
    --sprite-w: 2304px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: var(--marquee-h);
}

.uc-logo-marquee::before,
.uc-logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.uc-logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--wp--preset--color--light, #f5f5f5), transparent);
}

.uc-logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--wp--preset--color--light, #f5f5f5), transparent);
}

.uc-logo-track {
    display: flex;
    gap: 0;
    width: max-content;
    height: var(--marquee-h);
    animation: uc-marquee 30s linear infinite;
    will-change: transform;
}

.uc-logo-track:hover {
    animation-play-state: paused;
}

.uc-logo-track img {
    display: block;
    height: var(--marquee-h);
    width: var(--sprite-w);
    flex: 0 0 var(--sprite-w);
    opacity: 0.85;
}

@keyframes uc-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--sprite-w) * -1)); }
}

/* Steps / How it works */
.uc-step {
    text-align: center;
    padding: 1.5rem;
}

.uc-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Testimonial */
.uc-testimonial {
    border-left: 4px solid var(--wp--preset--color--accent);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
}

.uc-testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    font-size: 1rem;
    color: var(--wp--preset--color--primary);
}

/* CTA section */
.uc-cta-section {
    text-align: center;
}

.uc-cta-section .wp-block-button__link {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Pricing table */
.uc-pricing-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.uc-pricing-card.featured {
    border: 3px solid var(--wp--preset--color--accent);
    transform: scale(1.03);
}

.uc-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wp--preset--color--primary);
    line-height: 1;
}

.uc-price-period {
    font-size: 1rem;
    color: var(--wp--preset--color--muted);
    font-weight: 400;
}

/* Pricing card feature list: left-align text, center the block */
.uc-pricing-card .wp-block-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.uc-pricing-card .wp-block-list li {
    text-align: left;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

/* WPForms contact form */
.wpforms-container .wpforms-form .wpforms-field-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wp--preset--color--primary, #1b2a4a);
    margin-bottom: 0.35rem;
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
    border: 2px solid #e2e5ea;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafbfc;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
    border-color: var(--wp--preset--color--accent, #e8a838);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
    outline: none;
    background: #fff;
}

.wpforms-container .wpforms-form textarea {
    min-height: 120px;
}

.wpforms-container .wpforms-form .wpforms-field-sublabel {
    font-size: 0.8rem;
    color: #888;
}

.wpforms-container .wpforms-form button[type="submit"].wpforms-submit {
    background: linear-gradient(135deg, #e8a838, #d4872a) !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.3);
}

.wpforms-container .wpforms-form button[type="submit"].wpforms-submit:hover {
    background: linear-gradient(135deg, #d4872a, #c07020) !important;
    box-shadow: 0 4px 14px rgba(232, 168, 56, 0.45);
    transform: translateY(-1px);
}

/* Inquiry form (AFT CT landing page) - mirrors WPForms styling */
.uc-inquiry-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wp--preset--color--primary, #1b2a4a);
    margin-bottom: 0.35rem;
}

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

.uc-inquiry-form input[type="text"],
.uc-inquiry-form input[type="email"],
.uc-inquiry-form input[type="tel"] {
    width: 100%;
    border: 2px solid #e2e5ea;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.uc-inquiry-form input:focus {
    border-color: var(--wp--preset--color--accent, #e8a838);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
    outline: none;
    background: #fff;
}

.uc-inquiry-form .uc-submit-btn {
    background: linear-gradient(135deg, #e8a838, #d4872a);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.3);
    width: 100%;
}

.uc-inquiry-form .uc-submit-btn:hover {
    background: linear-gradient(135deg, #d4872a, #c07020);
    box-shadow: 0 4px 14px rgba(232, 168, 56, 0.45);
    transform: translateY(-1px);
}

.uc-inquiry-form .uc-submit-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.uc-inquiry-form .status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.uc-inquiry-form .status-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.uc-inquiry-form .status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Finger tap animation - triggered by JS before each slide */
.uc-finger-overlay.uc-tap {
    animation: finger-tap 0.4s ease-in-out;
}

@keyframes finger-tap {
    0% { transform: translateY(0); }
    40% { transform: translateY(-14px); }
    65% { transform: translateY(2px); }
    85% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* Links in dark sections (hero, CTA) - exclude buttons */
.uc-animated-hero a:not(.wp-element-button),
.wp-block-cover a:not(.wp-element-button),
.uc-cta-section a:not(.wp-element-button) {
    color: #e8a838 !important;
    text-decoration: underline;
}

.uc-animated-hero a:not(.wp-element-button):hover,
.wp-block-cover a:not(.wp-element-button):hover,
.uc-cta-section a:not(.wp-element-button):hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Footer */

.uc-proposal {
    max-width: 900px;
    margin: -1rem auto 0;
    padding: 0 1.5rem 60vh;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.uc-proposal h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1b2a4a;
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e8a838;
}

.uc-proposal h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1b2a4a;
    margin: 2rem 0 0.75rem;
}

.uc-proposal p {
    margin-bottom: 1rem;
}

/* Restore list padding so bullets don't hang into the margin.
   Site-wide reset in application.css strips default ul/ol padding. */
.uc-proposal ul,
.uc-proposal ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

/* Hero */
.uc-proposal-hero {
    background: #1b2a4a;
    color: #fff;
    padding: 4rem 2.5rem;
    border-radius: 12px;
    margin: 0 -1.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.uc-proposal-hero::before,
.uc-proposal-hero::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.uc-proposal-hero::before {
    background: #e8a838;
    top: -20%;
    left: -20%;
    animation: uc-proposal-glow-1 12s ease-in-out infinite alternate;
}

.uc-proposal-hero::after {
    background: #111;
    bottom: -20%;
    right: -20%;
    animation: uc-proposal-glow-2 15s ease-in-out infinite alternate;
}

@keyframes uc-proposal-glow-1 {
    0% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(50%, 40%) scale(1.15); }
    40% { transform: translate(80%, -10%) scale(0.9); }
    60% { transform: translate(30%, 60%) scale(1.1); }
    80% { transform: translate(70%, 20%) scale(0.95); }
    100% { transform: translate(10%, 50%) scale(1.05); }
}

@keyframes uc-proposal-glow-2 {
    0% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(-40%, -50%) scale(1.1); }
    40% { transform: translate(-70%, 10%) scale(0.95); }
    60% { transform: translate(-20%, -40%) scale(1.15); }
    80% { transform: translate(-60%, -60%) scale(0.9); }
    100% { transform: translate(-30%, -20%) scale(1.05); }
}

.uc-proposal-hero > * {
    position: relative;
    z-index: 2;
}

.uc-proposal-hero h1 {
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
}

.uc-proposal-hero h1 strong {
    color: #e8a838;
    font-weight: 400;
}

.uc-proposal-hero .subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.uc-proposal-hero .byline {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 1.5rem;
}

/* Callout boxes */
.uc-proposal .callout {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.uc-proposal .callout-proof {
    background: #edf7ed;
    border: 1px solid #c3e6c3;
}

.uc-proposal .callout-value {
    background: #fff8e6;
    border: 1px solid #f0dca8;
}

.uc-proposal .callout-info {
    background: #f0f4f8;
    border: 1px solid #d0dbe8;
}

.uc-proposal .callout strong {
    color: #1b2a4a;
}

/* Stats row */
.uc-proposal .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.uc-proposal .stat {
    background: #f8f9fb;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e5ea;
}

.uc-proposal .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #e8a838;
    display: block;
    line-height: 1;
}

.uc-proposal .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

/* Feature cards grid */
.uc-proposal .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.uc-proposal .feature-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e2e5ea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.uc-proposal .feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b2a4a;
    margin: 0 0 0.5rem;
}

.uc-proposal .feature-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Two-column layout */
.uc-proposal .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.uc-proposal .col-box {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e5ea;
}

.uc-proposal .col-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8a838;
    margin: 0 0 0.75rem;
}

/* Promo highlight boxes (above pricing) */
.uc-proposal .promo-highlights .col-box {
    background: #fff8e6;
    border: 2px solid #e8a838;
    text-align: center;
    padding: 1.75rem 1.5rem;
}
.uc-proposal .promo-highlights .col-box h4 {
    font-size: 1.3rem;
    color: #1b2a4a;
    margin-bottom: 0.5rem;
}
.uc-proposal .promo-highlights .col-box p {
    font-size: 1rem;
}

/* Pricing table */
.uc-proposal .pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.uc-proposal .pricing-table th {
    background: #1b2a4a;
    color: #fff;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.uc-proposal .pricing-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.uc-proposal .pricing-table tr:last-child td {
    border-bottom: none;
}

.uc-proposal .pricing-table tr:nth-child(even) {
    background: #f8f9fb;
}

.uc-proposal .pricing-table td strong {
    color: #1b2a4a;
}

/* Timeline steps */
.uc-proposal .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.uc-proposal .step {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #e2e5ea;
}

.uc-proposal .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8a838;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.uc-proposal .step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1b2a4a;
    margin: 0 0 0.5rem;
}

.uc-proposal .step p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Personnel bios */
.uc-proposal .bio {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 1.75rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e5ea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.uc-proposal .bio h3 {
    color: #e8a838;
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.uc-proposal .bio .role {
    font-weight: 600;
    color: #1b2a4a;
    margin-bottom: 0.75rem;
    display: block;
}

.uc-proposal .bio p {
    font-size: 0.95rem;
}

/* Contact section */
.uc-proposal .contact-section {
    background: #1b2a4a;
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.5rem -1.5rem 0;
}

.uc-proposal .contact-section h2 {
    color: #fff;
    border-bottom-color: #e8a838;
    margin-top: 0;
}

.uc-proposal .contact-section p {
    opacity: 0.9;
}

.uc-proposal .contact-section a {
    color: #e8a838;
    text-decoration: none;
}

.uc-proposal .contact-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.uc-proposal .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.uc-proposal .contact-card {
    background: rgba(255,255,255,0.08);
    padding: 1.25rem;
    border-radius: 8px;
}

.uc-proposal .contact-card strong {
    color: #e8a838;
}

/* Proposal section nav */
.uc-proposal-nav {
    position: sticky;
    top: 0;
    z-index: 998;
    background: #1b2a4a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin: 0 -1.5rem 2rem;
    border-radius: 12px;
}
.uc-proposal-nav.is-stuck::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    pointer-events: none;
}
.uc-proposal-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 0 auto;
    padding: 0.5rem 0.75rem;
}
.uc-proposal-nav a,
.uc-proposal-nav a:hover,
.uc-proposal-nav a:focus,
.uc-proposal-nav a:visited {
    display: block;
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
    white-space: nowrap;
    border-radius: 20px;
    border: 1px solid transparent;
    border-bottom: none;
    transition: all 0.2s;
}
.uc-proposal-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.uc-proposal-nav a.active {
    color: #1b2a4a;
    background: #e8a838;
    border-color: #e8a838;
}

