﻿
/*
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
}
*/

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

    .overlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.30);
    position: relative;
    z-index: 9999;
    animation: fadeUp 0.35s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9aa3b2;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

    .close-btn:hover {
        color: #F0AD4E;
    }

.card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: #1a2340;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.rowform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

    .field:last-child {
        margin-bottom: 0;
    }

label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1a2340;
    letter-spacing: 0.01em;
}

input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #dde3ef;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1a2340;
    background: #f7f9fc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    input::placeholder {
        color: #a8b2c8;
    }

    input:focus {
        border-color: #F0AD4E;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(240,173,78,0.15);
    }

    input.error {
        border-color: #e03e3e;
        background: #fff5f5;
    }

.error-msg {
    font-size: 12px;
    color: #e03e3e;
    margin-top: -2px;
    display: none;
}

    .error-msg.visible {
        display: block;
    }

.submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 15px;
    background: #f3bc68;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(240,173,78,0.28);
}

    .submit-btn:hover {
        background: #F0AD4E;
        box-shadow: 0 6px 24px rgba(240,173,78,0.36);
        transform: translateY(-1px);
    }

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

    .submit-btn:disabled {
        background: #d4b88a;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }

.success-msg {
    display: none;
    text-align: center;
    padding: 20px 0 4px;
}

    .success-msg.visible {
        display: block;
    }

.success-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.success-msg p {
    color: #1a2340;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 460px) {
    .row {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 32px 20px 28px;
    }
}

