/* Form Sayfası CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Görseller container */
.images-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Ürün görselleri */
.product-image {
    width: 100%;
}

.product-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* İade garantisi görseli */
.guarantee-container {
    width: 100%;
    padding: 0;
    text-align: center;
}

.guarantee-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Ürün Seçimi Bölümü */
.product-selection {
    padding: 20px;
}

.product-selection h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.product-item {
    cursor: pointer;
    position: relative;
}

.product-images {
    width: 100%;
    position: relative;
}

.product-images img {
    width: 100%;
    height: auto;
    display: block;
}

.normal-image {
    position: relative;
    z-index: 1;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item.selected .normal-image {
    opacity: 0;
}

.product-item.selected .hover-image {
    opacity: 1;
}

/* Adres Bilgileri Formu */
.address-form {
    padding: 20px 20px 10px 20px;
}

.address-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4c8bf5;
    box-shadow: 0 0 0 2px rgba(76, 139, 245, 0.1);
}

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

/* Telefon alanı için özel stil */
.phone-group {
    margin-bottom: 20px;
}

.phone-input-container {
    display: flex;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 0 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-right: 1px solid #ddd;
    min-width: 70px;
}

.phone-group input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 15px;
    font-size: 16px;
}

.phone-group input:focus {
    outline: none;
}

/* Telefon alanı için mobil uyumluluk */
@media (max-width: 768px) {
    .phone-prefix {
        padding: 0 10px;
        font-size: 14px;
        min-width: 60px;
        height: 48px;
    }
    
    .phone-group input {
        padding: 14px;
        font-size: 14px;
        height: 48px;
    }
}

/* Bölüm başlıkları */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* Ödeme yöntemi seçimi */
.payment-method-container {
    position: relative;
    width: 100%;
}

.payment-method-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
}

.payment-method-container .select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #333;
    pointer-events: none;
}

/* Siparişi tamamla butonu */
.submit-btn {
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.submit-btn-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Tıklanabilir görseller */
.scroll-to-products {
    cursor: pointer;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .guarantee-container {
        padding: 0;
    }
    
    .guarantee-image {
        max-width: 100%;
    }
    
    .address-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px;
        height: 48px;
    }
    
    .form-group textarea {
        height: 120px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .payment-method-container select {
        padding: 14px;
        font-size: 16px;
        height: 48px;
    }
}

/* Footer görseli */
.footer-image-container {
    width: 100%;
    margin-top: 5px;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Son form-group için özel stil */
.last-form-group {
    margin-bottom: 0;
}

/* Telefon hata mesajı */
.phone-error-message {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.phone-input-container.error {
    border-color: #e74c3c;
}

.phone-input-container.error + .phone-error-message {
    display: block;
}

/* Hata mesajları */
.error-message {
    background-color: #ffebee;
    color: #e53935;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #e53935;
    font-size: 14px;
}
