/* Contact section + 4-step quiz.
   Shared by any page that renders template-parts/sections/contact.php but
   has no page stylesheet of its own (the case-study pages). Pages migrated
   from Elementor still carry their own copy in assets/css/pages/. */

/* Page: contact-us */

/* --- СЕКЦІЯ --- */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.contact-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* --- ЛІВА КОЛОНКА --- */
.contact-info-col {
    flex: 1;
    max-width: 450px;
}

.contact-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.contact-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
}

.contact-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Контактні методи (Телефон, Email) */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.c-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--brand-orange); /* Помаранчевий квадрат */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border-radius: 2px; /* Легке заокруглення */
}

.c-details {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--maine-black);
    margin-bottom: 4px;
}

.c-link {
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.c-link:hover {
    color: var(--brand-orange);
}

/* Соцмережі */
.social-icons-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-circle:hover {
    transform: translateY(-3px);
}

.social-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    max-width: 300px;
}

/* --- ПРАВА КОЛОНКА (ФОРМА) --- */
.contact-form-col {
    flex: 1;
    position: relative;
}

.form-wrapper-outer {
    position: relative;
    padding-top: 30px; /* Місце для виступу фону */
}

/* Помаранчевий фон позаду */
.form-orange-bg {
    position: absolute;
    top: 0;
    right: -50px; /* Виступає вправо */
    width: 100%;
    height: 90%;
    background-color: var(--brand-orange);
    z-index: 1;
}

/* Біла коробка форми */
.form-box-inner {
    position: relative;
    background: #fff;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 2; /* Поверх помаранчевого */
    margin-right: 30px; /* Відступ від правого краю помаранчевого */
}

.quiz-wrapper {
    padding: 10px 0;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #f37021);
    border-radius: 10px;
    width: 25%;
    transition: width 0.4s ease;
}

.quiz-step-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.quiz-question {
    font-size: 20px;
    font-weight: 700;
    color: #002e5d;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.quiz-hint {
    font-size: 13px;
    color: #999;
    margin: 0 0 16px 0;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: #f37021;
    background: #fff8f4;
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    accent-color: #f37021;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.quiz-option:has(input:checked) {
    border-color: #f37021;
    background: #fff8f4;
}

.quiz-inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.quiz-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quiz-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.quiz-input-group .req {
    color: #f37021;
}

.quiz-input-group input {
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-primary, sans-serif);
    width: 100%;
    box-sizing: border-box;
}

.quiz-input-group input:focus {
    border-color: #f37021;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.quiz-btn-next,
.quiz-btn-submit {
    background: linear-gradient(90deg, #ff8c00, #f37021);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.2s;
    font-family: var(--font-primary, sans-serif);
}

.quiz-btn-next:hover,
.quiz-btn-submit:hover {
    opacity: 0.88;
}

.quiz-btn-back {
    background: none;
    border: 2px solid #ddd;
    color: #777;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: var(--font-primary, sans-serif);
}

.quiz-btn-back:hover {
    border-color: #f37021;
    color: #f37021;
}

.quiz-success {
    text-align: center;
    padding: 40px 20px;
}

.quiz-success-icon {
    font-size: 64px;
    color: #f37021;
    margin-bottom: 20px;
}

.quiz-success h3 {
    font-size: 28px;
    font-weight: 700;
    color: #002e5d;
    margin: 0 0 12px 0;
}

.quiz-success p {
    font-size: 16px;
    color: #666;
    margin: 0;
}
