/* Teklif Al Form Page Styles */

/* Inherit Global Transitions and Variables where possible, but define page-specific refined styles */

/* Form Hero Section - Revised to match Service Page Hero */
.form-hero {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.95) 0%, rgba(90, 30, 58, 0.95) 100%),
        url('../assets/hero-bg.png') center/cover;
    padding: 140px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.form-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.form-hero h1 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.form-hero-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Quote Form Section */
.quote-form-section {
    padding: 35px 0 80px;
    background-color: var(--off-white);
    position: relative;
}

.form-notice {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.5;
    font-weight: 400;
}

.form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Form Layout System */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Üst Kısım: 4 alan yan yana (masaüstü) */
.form-grid-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Yatay Ayırıcı Çizgi */
.form-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #dcdbd7, transparent);
    margin: 10px 0;
}

/* Alt Kısım: 2 alan yan yana (masaüstü) */
.form-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    width: 100%;
    margin-top: 10px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mickey-black);
    font-family: var(--font-secondary);
}

.form-group .required {
    color: var(--premium-burgundy);
}

/* Input Error Styles */
.form-group.has-error input {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    animation: errorShake 0.4s ease;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.form-group input,
.form-group textarea {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1.5px solid #ededea;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
    background: #fcfcfb;
    color: var(--taupe-dark);
    display: block;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--premium-burgundy-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(85, 11, 20, 0.05);
}

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

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

/* Multi-Select Dropdown - Restored & Refined */
.multi-select-wrapper {
    position: relative;
}

.multi-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1.5px solid #ededea;
    border-radius: 10px;
    background: #fcfcfb;
    cursor: pointer;
    transition: var(--transition-normal);
}

.multi-select-trigger:hover {
    border-color: #d0ceca;
}

.multi-select-wrapper.active .multi-select-trigger {
    border-color: var(--premium-burgundy-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(85, 11, 20, 0.05);
}

.multi-select-trigger .placeholder {
    font-size: 0.9rem;
    color: #b0afab;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 25px);
}

.multi-select-trigger .placeholder.has-value {
    color: var(--mickey-black);
    font-weight: 500;
}

.multi-select-trigger .dropdown-icon {
    width: 16px;
    height: 16px;
    color: var(--taupe-medium);
    transition: transform 0.3s ease;
}

.multi-select-wrapper.active .dropdown-icon {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.multi-select-wrapper.active .multi-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    color: var(--taupe-dark);
    user-select: none;
}

.checkbox-item:hover {
    background: rgba(85, 11, 20, 0.04);
    color: var(--premium-burgundy);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #dcdbd7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: var(--white);
}

.checkbox-item .checkmark::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--premium-burgundy);
    border-radius: 1px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkbox-item input[type="checkbox"]:checked+.checkmark {
    border-color: var(--premium-burgundy);
    background: rgba(85, 11, 20, 0.05);
}

.checkbox-item input[type="checkbox"]:checked+.checkmark::after {
    opacity: 1;
    transform: scale(1);
}

/* Form Actions */
.form-actions {
    margin-top: 15px;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: var(--premium-burgundy);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(85, 11, 20, 0.2);
}

.btn-submit:hover {
    background: var(--premium-burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 11, 20, 0.3);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(5px);
}

.contact-alternative {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ededea;
    text-align: center;
}

.contact-alternative p {
    color: var(--taupe-medium);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.alternative-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp,
.btn-phone,
.btn-email {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1faf57;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.btn-phone {
    background: var(--premium-burgundy);
    color: white;
}

.btn-phone:hover {
    background: var(--premium-burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(85, 11, 20, 0.25);
}

.btn-email {
    background: #444;
    color: white;
}

.btn-email:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Floating Back Button - Standardized */
.floating-back {
    position: fixed;
    top: 100px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--premium-burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1001;
    cursor: pointer;
    text-decoration: none;
    color: var(--premium-burgundy);
}

.floating-back:hover {
    transform: translateX(-4px) scale(1.05);
    background: var(--premium-burgundy);
    color: var(--white);
}

.floating-back svg {
    width: 24px;
    height: 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Refinements */
@media (max-width: 1024px) {
    .form-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .form-grid-top,
    .form-grid-bottom {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        margin: 0 15px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .form-hero h1 {
        font-size: 2rem;
    }

    .floating-back {
        top: auto;
        bottom: 20px;
        left: 20px;
    }
}

/* KVKK Notice */
.kvkk-notice {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    text-align: center;
    padding: 0 10px;
}

.kvkk-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.kvkk-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* KVKK Modal */
.kvkk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.kvkk-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kvkk-modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 550px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.kvkk-modal-overlay.active .kvkk-modal {
    transform: scale(1) translateY(0);
}

.kvkk-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #ededea;
    flex-shrink: 0;
}

.kvkk-modal-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mickey-black);
    margin: 0;
}

.kvkk-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--taupe-dark);
}

.kvkk-modal-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mickey-black);
    margin: 20px 0 8px 0;
}

.kvkk-modal-content h4:first-of-type {
    margin-top: 15px;
}

.kvkk-modal-content p {
    margin: 0 0 12px 0;
}

.kvkk-modal-content ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.kvkk-modal-content li {
    margin-bottom: 6px;
}

.kvkk-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #ededea;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.kvkk-close-btn {
    background: var(--premium-burgundy);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kvkk-close-btn:hover {
    background: var(--premium-burgundy-light);
    transform: translateY(-2px);
}

/* Modal Responsive */
@media (max-width: 600px) {
    .kvkk-modal {
        max-height: 80vh;
    }

    .kvkk-modal-header {
        padding: 16px 20px;
    }

    .kvkk-modal-content {
        padding: 20px;
    }

    .kvkk-modal-footer {
        padding: 14px 20px;
    }
}

/* Success Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.active .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
    animation: successPop 0.5s ease 0.2s both;
}

.success-modal-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkDraw 0.5s ease 0.5s forwards;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-modal-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mickey-black);
    margin: 0 0 12px 0;
}

.success-modal-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--taupe-dark);
    margin: 0;
}

.success-modal-btn {
    background: var(--premium-burgundy);
    color: var(--white);
    border: none;
    padding: 14px 50px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 28px;
    box-shadow: 0 4px 15px rgba(85, 11, 20, 0.2);
}

.success-modal-btn:hover {
    background: var(--premium-burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 11, 20, 0.3);
}

/* Success Modal Responsive */
@media (max-width: 480px) {
    .success-modal {
        padding: 32px 24px;
        margin: 0 15px;
    }

    .success-modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .success-modal-icon svg {
        width: 35px;
        height: 35px;
    }

    .success-modal-content h3 {
        font-size: 1.3rem;
    }

    .success-modal-content p {
        font-size: 0.9rem;
    }

    .success-modal-btn {
        padding: 12px 40px;
        font-size: 0.95rem;
    }
}