/**
 * ES Metal İletişim Formu - Frontend Stilleri
 */

/* Reset ve Genel */
.es-contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.es-contact-wrapper * {
    box-sizing: border-box;
}

/* Form Section */
.es-contact-form-section {
    flex: 1;
    min-width: 0;
}

.es-contact-info-section {
    flex: 1;
    min-width: 0;
}

/* Form Stilleri */
.es-contact-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.es-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.es-form-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.es-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.es-form-group {
    flex: 1;
    min-width: 0;
}

.es-form-group-full {
    width: 100%;
    margin-bottom: 20px;
}

.es-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.es-form-group label .required {
    color: #e74c3c;
}

.es-form-group input[type="text"],
.es-form-group input[type="email"],
.es-form-group input[type="tel"],
.es-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

.es-form-group input:focus,
.es-form-group textarea:focus {
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.es-form-group input::placeholder,
.es-form-group textarea::placeholder {
    color: #aaa;
}

.es-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Hata Mesajları */
.es-error-message {
    display: block;
    font-size: 13px;
    color: #e74c3c;
    margin-top: 6px;
    min-height: 18px;
}

.es-form-group.has-error input,
.es-form-group.has-error textarea {
    border-color: #e74c3c;
}

/* Dosya Yükleme */
.es-file-upload {
    position: relative;
}

.es-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.es-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
    transition: all 0.3s ease;
}

.es-file-upload:hover .es-file-upload-label {
    border-color: #3498db;
    background: #f0f8ff;
}

.es-file-upload-label svg {
    color: #3498db;
    margin-bottom: 10px;
}

.es-file-upload-label span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.es-file-upload-label small {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.es-file-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 10px;
    margin-top: 10px;
}

.es-file-name {
    font-size: 14px;
    color: #2e7d32;
    font-weight: 500;
}

.es-file-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.es-file-remove:hover {
    color: #e74c3c;
}

/* Submit Butonu */
.es-form-submit {
    margin-top: 30px;
}

.es-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.es-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.es-submit-btn:active {
    transform: translateY(0);
}

.es-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.es-spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.es-spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form Mesajları */
.es-form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
}

.es-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.es-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* İletişim Bilgileri Stilleri */
.es-contact-info {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    height: 100%;
}

.es-info-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.es-info-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.es-contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Animasyonlu Info Items */
.es-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.es-contact-info-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.es-contact-info-item:nth-child(1) { transition-delay: 0.1s; }
.es-contact-info-item:nth-child(2) { transition-delay: 0.2s; }
.es-contact-info-item:nth-child(3) { transition-delay: 0.3s; }
.es-contact-info-item:nth-child(4) { transition-delay: 0.4s; }

.es-contact-info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.es-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 12px;
}

.es-info-icon svg {
    color: #fff;
}

.es-info-content h3 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
}

.es-info-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px 0;
}

.es-info-title-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.es-info-link {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.es-info-link:hover {
    color: #3498db;
}

.es-info-address {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .es-contact-wrapper {
        flex-direction: column;
        padding: 20px 15px;
        gap: 30px;
    }
    
    .es-contact-form,
    .es-contact-info {
        padding: 25px 20px;
    }
    
    .es-form-title,
    .es-info-title {
        font-size: 24px;
    }
    
    .es-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .es-form-group input,
    .es-form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .es-submit-btn {
        padding: 14px 24px;
    }
    
    .es-contact-info-item {
        padding: 16px;
    }
    
    .es-info-icon {
        width: 42px;
        height: 42px;
    }
    
    .es-info-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .es-contact-wrapper {
        padding: 15px 10px;
    }
    
    .es-contact-form,
    .es-contact-info {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .es-form-title,
    .es-info-title {
        font-size: 22px;
    }
    
    .es-file-upload-label {
        padding: 20px;
    }
}
