/**
 * İletişim Formu Stilleri
 * Northkan İletişim Sayfası
 */

/* Form mesaj stilleri */
.form-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Input hata durumu */
.input.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.input.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Submit butonu loading durumu */
.submit-button {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.submit-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-button.loading {
    padding-left: 50px;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Input stilleri iyileştirmesi */
.input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.input::placeholder {
    color: #999;
}

textarea.input {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

/* Animasyonlar */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .form-message {
        font-size: 14px;
        padding: 12px 15px;
    }

    .input {
        font-size: 14px;
        padding: 12px;
    }

    .submit-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 15px;
    }

    .submit-button.loading {
        padding-left: 20px;
    }

    .spinner {
        position: static;
        display: inline-block;
        margin-right: 8px;
        transform: none;
        vertical-align: middle;
    }
}

/* Form container iyileştirmesi */
.gdlr-core-contact-form-7-item form {
    position: relative;
}

/* Telefon input'u ekle */
#Phone {
    display: block;
    width: 100%;
}

