/* ============================================
   CONTACT PAGE STYLES
   My Solivagant Path
   ============================================ */

:root {
    --primary: #f2693f;
    --primaryLight: #ffba43;
    --secondary: #ffba43;
    --headerColor: #1a1a1a;
    --bodyTextColor: #4e4b66;
    --bodyTextColorWhite: #fafbfc;
    --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
    --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem);
    --bodyFontSize: 1rem;
    --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   CONTACT HERO
   ============================================ */

#contact-hero {
    padding: clamp(10rem, 20vw, 14rem) 1rem clamp(4rem, 8vw, 6rem);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

#contact-hero .cs-container {
    font-family: "Cinzel", serif;
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

#contact-hero .cs-content {
    width: 100%;
    max-width: 43.75rem;
}

#contact-hero .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: block;
}

#contact-hero .cs-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.2em;
    max-width: 43.75rem;
    margin: 0 0 1.5rem 0;
    color: var(--bodyTextColorWhite);
}

#contact-hero .cs-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6em;
    width: 100%;
    max-width: 40.625rem;
    margin: 0 auto;
    color: var(--bodyTextColorWhite);
    opacity: 0.95;
}

#contact-hero .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#contact-hero .cs-background:before {
    content: "";
    position: absolute;
    display: block;
    height: 125rem;
    width: 187.5rem;
    background: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(5px);
    top: 70.3125rem;
    left: 50%;
    z-index: 1;
    transform: rotate(30deg) translateX(-50%);
}

#contact-hero .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media only screen and (min-width: 48rem) {
    #contact-hero .cs-background:before {
        top: 7.5rem;
        margin-left: -127.1875rem;
        transform: rotate(60deg);
    }
}

/* ============================================
   CONTACT METHODS
   ============================================ */

#contact-methods {
    padding: var(--sectionPadding);
    background: #fff;
}

#contact-methods .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
}

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

#contact-methods .cs-card {
    background: #f8f8f8;
    padding: 2.5rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#contact-methods .cs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

#contact-methods .cs-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

#contact-methods .cs-card:hover .cs-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

#contact-methods .cs-icon-wrapper i {
    font-size: 2rem;
    color: #fff;
}

#contact-methods .cs-card-title {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
}

#contact-methods .cs-card-text {
    font-size: 1rem;
    line-height: 1.6em;
    margin-bottom: 1.5rem;
    color: var(--bodyTextColor);
}

#contact-methods .cs-card-link {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
}

#contact-methods .cs-card-link:hover {
    color: var(--secondary);
}

/* ============================================
   CONTACT FORM
   ============================================ */

#contact-form {
    padding: var(--sectionPadding);
    background: #f8f8f8;
}

#contact-form .cs-container {
    width: 100%;
    max-width: 50rem;
    margin: auto;
}

#contact-form .cs-content {
    text-align: center;
    margin-bottom: 3rem;
}

#contact-form .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

#contact-form .cs-title {
    font-family: "Cinzel", serif;
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
}

#contact-form .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.6em;
    max-width: 40.625rem;
    margin: 0 auto;
    color: var(--bodyTextColor);
}

#contact-form .cs-form-wrapper {
    position: relative;
}

#contact-form .cs-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

#contact-form .cs-hidden {
    display: none;
}

#contact-form .cs-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#contact-form .cs-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--headerColor);
}

#contact-form .cs-required {
    color: var(--primary);
}

#contact-form .cs-input,
#contact-form .cs-select,
#contact-form .cs-textarea {
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.25rem;
    background: #fff;
    color: var(--bodyTextColor);
    transition: all 0.3s;
}

#contact-form .cs-input:focus,
#contact-form .cs-select:focus,
#contact-form .cs-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 105, 63, 0.1);
}

#contact-form .cs-textarea {
    resize: vertical;
    min-height: 150px;
}

#contact-form .cs-button-solid {
    font-size: 1rem;
    line-height: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 0 2rem;
    background-color: var(--primary);
    border: none;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

#contact-form .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #5d574e;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
}

#contact-form .cs-button-solid:hover:before {
    width: 100%;
}

#contact-form .cs-button-solid:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
#contact-form .cs-success-message {
    display: none;
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#contact-form .cs-success-message.active {
    display: block;
    animation: slideIn 0.5s ease;
}

#contact-form .cs-success-icon {
    width: 5rem;
    height: 5rem;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

#contact-form .cs-success-icon i {
    font-size: 2.5rem;
    color: #fff;
}

#contact-form .cs-success-message h3 {
    font-family: "Cinzel", serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--headerColor);
}

#contact-form .cs-success-message p {
    font-size: 1rem;
    line-height: 1.6em;
    margin-bottom: 2rem;
    color: var(--bodyTextColor);
}

#contact-form .cs-button-secondary {
    font-size: 1rem;
    line-height: 3rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

#contact-form .cs-button-secondary:hover {
    background: var(--primary);
    color: #fff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #contact-form .cs-form {
        grid-template-columns: 1fr 1fr;
    }
    
    #contact-form .cs-full-width {
        grid-column: 1 / -1;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */

#contact-faq {
    padding: var(--sectionPadding);
    background: #fff;
}

#contact-faq .cs-container {
    width: 100%;
    max-width: 50rem;
    margin: auto;
}

#contact-faq .cs-content {
    text-align: center;
    margin-bottom: 3rem;
}

#contact-faq .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

#contact-faq .cs-title {
    font-family: "Cinzel", serif;
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    margin: 0;
    color: var(--headerColor);
}

#contact-faq .cs-faq-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-faq .cs-faq-item {
    background: #f8f8f8;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

#contact-faq .cs-faq-item.active {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#contact-faq .cs-faq-button {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

#contact-faq .cs-faq-button:hover {
    background: rgba(242, 105, 63, 0.05);
}

#contact-faq .cs-faq-question {
    font-family: "Cinzel", serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--headerColor);
    display: flex;
    align-items: center;
    gap: 1rem;
}

#contact-faq .cs-faq-question i {
    color: var(--primary);
    font-size: 1.25rem;
}

#contact-faq .cs-faq-icon {
    font-size: 1rem;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

#contact-faq .cs-faq-item.active .cs-faq-icon {
    transform: rotate(180deg);
}

#contact-faq .cs-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#contact-faq .cs-faq-item.active .cs-faq-answer {
    max-height: 500px;
}

#contact-faq .cs-faq-answer p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.7em;
    color: var(--bodyTextColor);
    margin: 0;
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */

#newsletter-cta {
    padding: var(--sectionPadding);
    background: #111926;
}

#newsletter-cta .cs-container {
    width: 100%;
    max-width: 50rem;
    margin: auto;
}

#newsletter-cta .cs-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#newsletter-cta .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

#newsletter-cta .cs-title {
    font-family: "Cinzel", serif;
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    margin: 0 0 1rem 0;
    color: var(--bodyTextColorWhite);
}

#newsletter-cta .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.6em;
    max-width: 40.625rem;
    margin: 0 0 2rem;
    color: var(--bodyTextColorWhite);
    opacity: 0.9;
}

#newsletter-cta .cs-form {
    width: 100%;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#newsletter-cta .cs-input {
    font-size: 1rem;
    font-family: "Raleway", sans-serif;
    width: 100%;
    height: 3.5rem;
    padding: 0 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

#newsletter-cta .cs-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#newsletter-cta .cs-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

#newsletter-cta .cs-button-solid {
    font-size: 1rem;
    line-height: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    width: 100%;
    padding: 0 2rem;
    background-color: var(--secondary);
    border: none;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

#newsletter-cta .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #5d574e;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
}

#newsletter-cta .cs-button-solid:hover {
    color: #fff;
}

#newsletter-cta .cs-button-solid:hover:before {
    width: 100%;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* Focus effect for form groups */
.cs-form-group.focused .cs-label {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE - TABLET & DESKTOP
   ============================================ */

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #newsletter-cta .cs-form {
        flex-direction: row;
    }
    
    #newsletter-cta .cs-input {
        flex: 1;
    }
    
    #newsletter-cta .cs-button-solid {
        width: auto;
        min-width: 10rem;
    }
}