/* ═══════════════════════════════════════════
   contact.css  →  webroot/css/contact.css
   ═══════════════════════════════════════════ */

.contact-wrapper {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── Sol: bilgiler ─── */
.contact-info-section {
    flex: 0 0 420px;
}

.contact-info-section h3 {
    color: var(--dark-navy);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.contact-info-section > p {
    color: #666;
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0 0 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: #eaf0f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-blue);
    fill: none;
}

.contact-detail-content {
    flex: 1;
    padding-top: 4px;
}

.contact-detail-content .label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail-content .value {
    color: var(--dark-navy);
    font-size: 0.9rem;
    line-height: 1.55;
}

.contact-detail-content a {
    color: var(--link-blue);
    text-decoration: none;
}

.contact-detail-content a:hover {
    text-decoration: underline;
}

/* ─── Sağ: form ─── */
.contact-form-section {
    flex: 1;
    background: #fff;
    padding: 32px 36px 38px;
    border-radius: 10px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
}

.contact-form-section .form-horizontal {
    margin: 0;
}

/* Name row: iki input yan yana */
.contact-name-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.contact-name-row .control-group {
    flex: 1;
    margin-bottom: 0;
}

/* Standart form fields */
.contact-form-section .control-group {
    margin-bottom: 18px;
}

.contact-form-section label.control-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    text-align: left;
    width: auto;
    float: none;
    margin-bottom: 6px;
}

.contact-form-section .controls {
    margin-left: 0;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d5dfe6;
    border-radius: 6px;
    font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="email"]:focus,
.contact-form-section textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 120, 180, 0.1);
    outline: none;
}

.contact-form-section textarea {
    resize: vertical;
    min-height: 120px;
}

/* Captcha */
.contact-captcha-group {
    margin-bottom: 22px;
}

.contact-captcha-group img {
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 200px;
    height: auto;
}

.contact-captcha-group .help-block {
    font-size: 0.78rem;
    color: #888;
    margin-top: 5px;
}

/* Submit button */
.contact-form-section .btn-primary {
    padding: 11px 32px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.contact-form-section .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 120, 180, 0.25);
}

/* Error states */
.contact-form-section .control-group.error input,
.contact-form-section .control-group.error textarea {
    border-color: #d9534f;
}

.contact-form-section .control-group.error label {
    color: #d9534f;
}

.contact-form-section .error-message {
    color: #d9534f;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Honeypot field (spam protection) */
.contact-form-name {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 32px;
    }

    .contact-info-section {
        flex: 0 0 auto;
    }

    .contact-form-section {
        padding: 26px 24px 30px;
    }
}

@media (max-width: 600px) {
    .contact-name-row {
        flex-direction: column;
        gap: 18px;
    }

    .contact-name-row .control-group {
        margin-bottom: 0;
    }

    .contact-info-section h3 {
        font-size: 1.5rem;
    }

    .contact-form-section {
        padding: 22px 20px 26px;
    }
}