/* Demo Modal Overlay */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Container */
.demo-modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    background-color: #f3f3f5;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 90vh;
    border: 2px solid #4a2c4a;
    /* Görseldeki mor çerçeve etkisi */
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

/* Kapatma Butonu (X) */
.demo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background-color: #3d2242;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: transform 0.2s;
}

.demo-modal-close:hover {
    transform: scale(1.1);
}

/* Arka Plandaki Soluk Yazı (Watermark) */
.demo-modal-watermark {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    z-index: 0;
    letter-spacing: 1px;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

/* İçerik Alanı */
.demo-modal-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 40px;
}

.demo-modal-title {
    color: #3d2242;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.demo-modal-subtitle {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

/* Form Yapısı (Grid) */
.demo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-bottom: 30px;
    text-align: left;
}

.demo-form-group {
    display: flex;
    flex-direction: column;
}

.demo-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.demo-form-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #999;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.demo-form-group input:focus {
    border-bottom-color: #3d2242;
}

.demo-form-group input.error {
    border-bottom-color: #ff4444;
}

.demo-form-error {
    color: #ff6b6b;
    font-size: 12px;
    min-height: 16px;
    display: block;
    margin-top: 2px;
}

/* Buton Stili */
.demo-submit-btn {
    background-color: #3d2242;
    color: white;
    border: none;
    padding: 15px 60px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(61, 34, 66, 0.3);
    transition: transform 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.demo-submit-btn:hover {
    transform: scale(1.02);
}

.demo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.demo-spinner {
    animation: rotate 2s linear infinite;
}

.demo-spinner .path {
    stroke: #ffffff;
    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;
    }
}

/* Success Modal Styles */
.demo-success-modal {
    max-width: 600px;
    min-height: auto;
    padding-bottom: 40px;
}

.demo-success-content {
    text-align: center;
    padding: 40px;
}

.demo-success-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #3d2242;
    margin-bottom: 20px;
}

.demo-success-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.demo-success-message {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.demo-success-btn {
    padding: 12px 50px;
    background: #3d2242;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-success-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(61, 34, 66, 0.3);
}

/* Mobil Uyumluluk */
@media (max-width: 480px) {
    .demo-form-grid {
        grid-template-columns: 1fr;
    }

    .demo-modal-watermark {
        font-size: 40px;
    }

    .demo-modal-container {
        padding: 20px;
    }
}

