/* ==========================================================
   DrTHair CF7 Enhance — intl-tel-input + file drop-zone
   ========================================================== */

/* =========== intl-tel-input site tasarımına uyum =========== */
.wpcf7 .iti {
    width: 100%;
    display: block;
}
.wpcf7 .iti__selected-flag {
    background: #f7f8fa;
    border-right: 1px solid rgba(3, 27, 78, 0.1);
    padding: 0 10px 0 12px;
    border-radius: 8px 0 0 8px;
    transition: background 0.2s ease;
}
.wpcf7 .iti__selected-flag:hover,
.wpcf7 .iti__selected-flag:focus {
    background: rgba(19, 68, 254, 0.04);
}
.wpcf7 .iti--separate-dial-code .iti__selected-dial-code {
    color: var(--themeht-text-color, #031B4E);
    font-weight: 500;
    font-size: 14px;
}
.wpcf7 .iti input[type="tel"],
.wpcf7 .iti input[type="text"] {
    padding-left: 92px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7 .iti input[type="tel"]:focus,
.wpcf7 .iti input[type="text"]:focus {
    border-color: var(--themeht-primary-color, #1344FE) !important;
    box-shadow: 0 0 0 3px rgba(19, 68, 254, 0.12) !important;
    outline: none !important;
}
.wpcf7 .iti__country-list {
    max-height: 260px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(3, 27, 78, 0.15);
    border: 1px solid rgba(3, 27, 78, 0.08);
    z-index: 100001;
    padding: 6px 0;
}
.wpcf7 .iti__country {
    padding: 8px 12px;
    font-size: 14px;
}
.wpcf7 .iti__country:hover,
.wpcf7 .iti__country.iti__highlight {
    background: rgba(19, 68, 254, 0.06);
}
.wpcf7 .iti__divider {
    border-color: rgba(3, 27, 78, 0.08);
    margin: 4px 0;
}
.wpcf7 .iti__search-input {
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid rgba(3, 27, 78, 0.08);
    font-size: 14px;
    width: 100%;
    outline: none;
}

/* Hata vurgusu */
.wpcf7 .iti.dwa-has-error input[type="tel"],
.wpcf7 .iti.dwa-has-error input[type="text"] {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* =========== File Drop Zone =========== */
.wpcf7 .dwa-file-wrap {
    position: relative;
    border: 2px dashed rgba(3, 27, 78, 0.2);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}
.wpcf7 .dwa-file-wrap:hover,
.wpcf7 .dwa-file-wrap.dwa-dragover {
    border-color: var(--themeht-primary-color, #1344FE);
    background: rgba(19, 68, 254, 0.04);
}
.wpcf7 .dwa-file-wrap.dwa-dragover {
    transform: scale(1.01);
}
.wpcf7 .dwa-file-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.wpcf7 .dwa-file-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(19, 68, 254, 0.08);
    color: var(--themeht-primary-color, #1344FE);
    transition: transform 0.25s ease;
}
.wpcf7 .dwa-file-wrap:hover .dwa-file-icon {
    transform: translateY(-2px);
}
.wpcf7 .dwa-file-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.wpcf7 .dwa-file-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--themeht-text-color, #031B4E);
    margin: 0 0 4px;
}
.wpcf7 .dwa-file-sub {
    font-size: 13px;
    color: rgba(3, 27, 78, 0.55);
    margin: 0;
}
.wpcf7 .dwa-file-list {
    margin-top: 14px;
    padding: 0;
    list-style: none;
    text-align: left;
}
.wpcf7 .dwa-file-list:empty { display: none; }
.wpcf7 .dwa-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(3, 27, 78, 0.08);
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--themeht-text-color, #031B4E);
}
.wpcf7 .dwa-file-item__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(19, 68, 254, 0.08);
    color: var(--themeht-primary-color, #1344FE);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpcf7 .dwa-file-item__icon svg { width: 14px; height: 14px; fill: currentColor; }
.wpcf7 .dwa-file-item__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wpcf7 .dwa-file-item__size {
    color: rgba(3, 27, 78, 0.5);
    font-size: 12px;
}

/* Error + progress */
.wpcf7 .dwa-file-wrap.dwa-has-error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.04);
}

@media (max-width: 600px) {
    .wpcf7 .iti input[type="tel"] { padding-left: 88px !important; }
    .wpcf7 .dwa-file-wrap { padding: 22px 14px; }
}
