/* --- Form Wrapper --- */
.form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

/* --- Form Konumu --- */
.form-left { justify-content: flex-start; align-items: flex-start; text-align: left; }
.form-center { justify-content: center; align-items: center; text-align: center; }
.form-right { justify-content: flex-end; align-items: flex-end; text-align: right; }

/* --- Form Genişliği --- */
.form-width-small .custom-mailform { width: 35%; }
.form-width-medium .custom-mailform { width: 45%; }
.form-width-large .custom-mailform { width: 80%; }

@media (max-width: 992px) {
    .form-width-small .custom-mailform,
    .form-width-medium .custom-mailform,
    .form-width-large .custom-mailform {
        width: 100%;
    }
}

/* --- Mailform Grid --- */
.custom-mailform {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Kolon genişlikleri */
.col-1 { flex: 0 0 100%; }
.col-2 { flex: 0 0 48%; }
.col-3 { flex: 0 0 30%; }
.col-4 { flex: 0 0 22%; }

@media (max-width: 992px) {
    .col-2, .col-3, .col-4 { flex: 0 0 100%; }
}

/* --- Label --- */
.custom-mailform label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    display: block;
    color: #ffffff; /* Siyah label */
}

.label-left { text-align: left; }
.label-center { text-align: center; }
.label-right { text-align: right; }

/* --- Input & Textarea --- */
.custom-mailform .custom-input {
    border-radius: 8px;
    padding: 14px 12px;
    font-size: 15px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.2);
    background-color: #ffffff; /* Beyaz arka plan */
    color: #000000; /* Yazı siyah */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Textarea Yüksekliği --- */
.custom-mailform .custom-input#input-question {
    min-height: calc(1.5em * 4 + 28px); /* 4 satır + padding */
    resize: vertical; /* Kullanıcı boyut değiştirebilir */
}

.custom-mailform .custom-input::placeholder {
    color: rgba(0,0,0,0.5);
}

.custom-mailform .custom-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 8px rgba(79,70,229,0.3);
    outline: none;
}

/* --- Button --- */
.custom-mailform .custom-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 25px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Spinner ve yazı arası boşluk */
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-mailform .custom-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.custom-mailform .custom-btn.sending {
    pointer-events: none;
    opacity: 0.9;
}

/* --- Spinner --- */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Form Text --- */
.custom-accent-text { color: #ffffff; margin-bottom: 20px; font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; }
.custom-form-group { margin-bottom: 15px; }

/* --- Popup Modal --- */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Daha transparan */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-modal.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-content {
    position: relative;
    background: #fff; /* Beyaz modal */
    margin: 10% auto;
    padding: 30px 25px; /* Üst boşluk biraz azaltıldı */
    border-radius: 14px;
    max-width: 400px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    color: #333;
    transform: translateY(-20px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
    opacity: 0;
    border-top: none; /* Üst mavi alan kaldırıldı */
}

.custom-modal.show .custom-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Eğer yine de farklı tipler için border göstermek istersek */
.custom-modal-content.success { border-top: none; }
.custom-modal-content.error { border-top: none; }

.custom-close-icon {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-close-icon:hover { color: #333; }

.custom-popup-icon {
    font-size: 42px;
    margin-bottom: 15px;
    display: block;
    opacity: 0;
    transform: scale(0.5);
    animation: iconIn 0.35s forwards;
}

.custom-popup-icon.success { color: #22c55e; }
.custom-popup-icon.error { color: #ef4444; }

@keyframes iconIn {
    0% {opacity:0; transform:scale(0.5);}
    100% {opacity:1; transform:scale(1);}
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .custom-modal-content { margin: 15% auto; padding: 35px 20px; }
    .custom-mailform .custom-btn { width: 100%; }
    .custom-mailform .custom-input { font-size: 14px; padding: 12px; }
    .custom-mailform label { font-size: 13px; }
}

@media (max-width: 576px) {
	.custom-mailform .custom-input#input-question { min-height: calc(1.5em * 3 + 28px); /* 3 satır mobilde */ }
    .custom-modal-content { margin: 20% auto; padding: 30px 15px; }
    .custom-popup-icon { font-size: 36px; }
    .custom-mailform .custom-input { font-size: 13px; padding: 10px; }
    .custom-mailform label { font-size: 12px; }
}

/* --- Padding Top --- */
.pt-1 { padding-top: 5px; }
.pt-2 { padding-top: 10px; }
.pt-3 { padding-top: 15px; }
.pt-4 { padding-top: 20px; }
.pt-5 { padding-top: 30px; }
.pt-6 { padding-top: 40px; }
.pt-7 { padding-top: 50px; }
.pt-8 { padding-top: 60px; }
.pt-9 { padding-top: 70px; }
.pt-10 { padding-top: 80px; }

/* --- Padding Bottom --- */
.pb-1 { padding-bottom: 5px; }
.pb-2 { padding-bottom: 10px; }
.pb-3 { padding-bottom: 15px; }
.pb-4 { padding-bottom: 20px; }
.pb-5 { padding-bottom: 30px; }
.pb-6 { padding-bottom: 40px; }
.pb-7 { padding-bottom: 50px; }
.pb-8 { padding-bottom: 60px; }
.pb-9 { padding-bottom: 70px; }
.pb-10 { padding-bottom: 80px; }
