/* ═══════════════════════════════════════════════════
   Contact Page — Premium Design
   ═══════════════════════════════════════════════════ */

/* Variables now centralized in color-palette.css */

/* ─────────────  HERO  ───────────── */
.ct-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.ct-hero-bg {
    position: absolute;
    inset: 0;
}

.ct-hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.ct-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ct-hero-particles .ct-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: ctParticleFloat 6s ease-in-out infinite;
}

@keyframes ctParticleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) scale(1.4);
        opacity: 0.7;
    }
}

.ct-hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ct-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ct-orb-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: ctOrbFloat 12s ease-in-out infinite;
}

.ct-orb-2 {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -20px;
    animation: ctOrbFloat 9s ease-in-out infinite reverse;
}

.ct-orb-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 60%;
    animation: ctOrbFloat 7s ease-in-out infinite 2s;
}

@keyframes ctOrbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(12px, -20px) scale(1.05);
    }
}

.ct-hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    animation: ctFadeUp 0.5s ease both;
}

.ct-hero-title {
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 14px;
    animation: ctFadeUp 0.5s ease 0.1s both;
}

.ct-hero-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
    animation: ctFadeUp 0.5s ease 0.2s both;
}

@keyframes ctFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────  BODY  ───────────── */
.ct-body {
    background: var(--bg);
    padding: 56px 0 64px;
}

/* ─────────────  INFO CARDS  ───────────── */
.ct-info-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--surface);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    animation: ctFadeUp 0.4s ease both;
}

.ct-info-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ct-info-card:nth-child(3) {
    animation-delay: 0.15s;
}

.ct-info-card:nth-child(4) {
    animation-delay: 0.2s;
}

.ct-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(108, 96, 254, 0.15);
}

.ct-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.ct-info-card h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.ct-info-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Social */
.ct-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    animation: ctFadeUp 0.4s ease 0.25s both;
}

.ct-social-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.ct-social-btns {
    display: flex;
    gap: 8px;
}

.ct-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    transition: var(--transition);
}

.ct-social-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ─────────────  FORM CARD  ───────────── */
.ct-form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    animation: ctFadeUp 0.4s ease 0.15s both;
    position: relative;
}

.ct-form-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.ct-form-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Steps Indicator */
.ct-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.ct-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.ct-step.active .ct-step-num {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 96, 254, 0.3);
}

.ct-step.completed .ct-step-num {
    background: var(--success);
    color: #fff;
}

.ct-step span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.ct-step.active span {
    color: var(--dark);
}

.ct-step.completed span {
    color: var(--success);
}

.ct-step-line {
    flex: 1;
    height: 2px;
    background: var(--surface-alt);
    border-radius: 2px;
    transition: background 0.4s;
    position: relative;
    overflow: hidden;
}

.ct-step-line.filled {
    background: var(--success);
}

/* Fields */
.ct-field {
    margin-bottom: 0;
}

.ct-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.ct-field label i {
    color: var(--primary);
    margin-right: 4px;
    font-size: 12px;
}

.ct-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--surface);
    transition: var(--transition);
    outline: none;
}

.ct-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 96, 254, 0.1);
}

.ct-input.is-invalid {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(253, 51, 88, 0.08);
}

.ct-input.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.ct-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236C60FE' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

.ct-textarea {
    min-height: 120px;
    resize: vertical;
}

.ct-char-count {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ct-field-error {
    font-size: 12px;
    color: var(--accent);
    margin-top: 4px;
    min-height: 16px;
}

/* Step Panels */
.ct-step-panel {
    display: none;
    animation: ctSlideIn 0.35s ease both;
}

.ct-step-panel.active {
    display: block;
}

@keyframes ctSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Actions */
.ct-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.ct-btn-next,
.ct-btn-submit {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: var(--transition);
}

.ct-btn-next:hover,
.ct-btn-submit:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 96, 254, 0.3);
}

.ct-btn-back {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border-soft);
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.ct-btn-back:hover {
    color: var(--dark);
    border-color: var(--primary-light);
    background: rgba(108, 96, 254, 0.04);
}

.ct-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─────────────  SUCCESS STATE  ───────────── */
.ct-success {
    text-align: center;
    padding: 32px 0;
    animation: ctFadeUp 0.5s ease both;
}

.ct-success-icon {
    margin-bottom: 20px;
}

.ct-success-circle {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: ctCircleDraw 0.6s ease 0.2s forwards;
}

.ct-success-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: ctCheckDraw 0.4s ease 0.7s forwards;
}

@keyframes ctCircleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ctCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.ct-success h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.ct-success p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto 24px;
}

.ct-btn-primary {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: var(--transition);
}

.ct-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 96, 254, 0.3);
}

/* ─────────────  CTA  ───────────── */
.ct-cta-section {
    background: var(--surface);
    padding: 56px 0;
}

.ct-cta-card {
    background: var(--gradient-hero);
    border-radius: 20px;
    padding: 40px 44px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ct-cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.ct-cta-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ct-cta-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-bottom: 0;
}

.ct-btn-cta {
    background: var(--surface);
    color: var(--dark);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    margin-right: 10px;
}

.ct-btn-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.ct-btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.ct-btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ─────────────  RESPONSIVE  ───────────── */
@media (max-width: 991px) {
    .ct-hero {
        padding: 60px 0 44px;
    }

    .ct-hero-title {
        font-size: 36px;
    }

    .ct-form-card {
        padding: 28px 24px;
    }

    .ct-cta-card {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    .ct-hero {
        padding: 48px 0 36px;
        min-height: auto;
    }

    .ct-hero-title {
        font-size: 28px;
    }

    .ct-hero-desc {
        font-size: 15px;
    }

    .ct-form-card {
        padding: 24px 18px;
    }

    .ct-steps {
        flex-wrap: wrap;
    }

    .ct-step-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .ct-step-actions .ct-btn-next,
    .ct-step-actions .ct-btn-submit,
    .ct-step-actions .ct-btn-back {
        width: 100%;
    }

    .ct-cta-card {
        text-align: center;
    }

    .ct-btn-cta {
        margin-right: 0;
        margin-bottom: 10px;
        display: block;
    }

    .ct-btn-cta-outline {
        display: block;
    }
}
