html, body, *, *:before, *:after {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100vh;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
}
.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}
.container {
    max-width: 950px;
    margin: 48px auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 48px rgba(60,60,120,0.13), 0 2px 12px rgba(0,0,0,0.06);
    padding: 48px 48px 36px 48px;
    border: 1.5px solid #e0e7ff;
    position: relative;
    z-index: 1;
    animation: fadeInCard 0.7s cubic-bezier(.4,0,.2,1);
    width: 100%;
    overflow-x: hidden;
}
.accent-bar {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
    border-radius: 2px;
    margin: 0 auto 24px auto;
}
.form-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}
.form-logo img {
    height: 64px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
}
h1 {
    text-align: center;
    color: #222;
    margin-bottom: 32px;
    letter-spacing: 2px;
    font-size: 2.1rem;
    font-weight: 700;
}
.form-section {
    margin-bottom: 36px;
}
.section-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #3b3b6d;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e0e7ff 0%, #6366f1 100%);
    border-radius: 1px;
    margin: 32px 0 36px 0;
    opacity: 0.18;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 28px;
    align-items: stretch;
}
.form-group {
    position: relative;
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
}
.floating-label input,
.floating-label textarea {
    background: #f8fafc;
    border: 1.5px solid #bfcfff;
    border-radius: 8px;
    font-size: 1.08rem;
    padding: 22px 16px 22px 16px;
    color: #222;
    width: 100%;
    min-height: 54px;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(60,60,120,0.04);
    outline: none;
    box-sizing: border-box;
}
.floating-label textarea {
    min-height: 80px;
    resize: vertical;
}
.floating-label label {
    position: absolute;
    left: 18px;
    top: 22px;
    color: #888;
    background: transparent;
    font-size: 1.08rem;
    font-weight: 500;
    pointer-events: none;
    transition: 0.18s cubic-bezier(.4,0,.2,1);
    padding: 0 4px;
    z-index: 2;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -14px;
    left: 10px;
    font-size: 0.93rem;
    color: #6366f1;
    background: #fff;
    padding: 0 6px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(60,60,120,0.03);
    z-index: 3;
}
.floating-label input,
.floating-label textarea {
    line-height: 1.4;
}
.form-group[style*="grid-column: span 3"] textarea {
    min-height: 100px;
}
.form-actions {
    text-align: center !important;
    margin-top: 48px !important;
    min-height: 64px !important;
    overflow: visible !important;
    z-index: 9999 !important;
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    opacity: 1 !important;
}
button[type="submit"] {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
    color: #fff;
    border: none;
    padding: 18px 0;
    border-radius: 8px;
    font-size: 1.18rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(60,60,120,0.10);
    width: 70%;
    max-width: 340px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    animation: fadeInCard 1.1s cubic-bezier(.4,0,.2,1);
    z-index: 2;
}
button[type="submit"]:hover {
    background: linear-gradient(90deg, #818cf8 0%, #6366f1 100%);
    box-shadow: 0 8px 32px rgba(60,60,120,0.13);
    transform: translateY(-2px) scale(1.03);
}
.btn-icon {
    font-size: 1.25em;
    display: inline-block;
    vertical-align: middle;
}
.fade-in {
    opacity: 0;
    animation: fadeInCard 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 1100px) {
    .container {
        padding: 28px 10px 24px 10px;
    }
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-group[style*="grid-column: span 3"] {
        grid-column: span 2 !important;
    }
    button[type="submit"] {
        width: 100%;
        max-width: none;
    }
}
@media (max-width: 600px) {
    body {
        padding-bottom: 90px;
    }
    .container {
        padding: 10px 0 90px 0;
        width: 100%;
        max-width: 100%;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px 0;
    }
    .form-group[style*="grid-column: span 3"] {
        grid-column: span 1 !important;
    }
    .form-actions {
        margin-top: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(60,60,120,0.07);
        z-index: 1000;
        padding: 12px 12px 18px 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
    }
    button[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
    .modern-btn {
        width: 96%;
        max-width: 96vw;
        font-size: 1.08rem;
        padding: 18px 0;
    }
}
@media print {
    button, .form-actions, form {
        display: none !important;
    }
    body, .container {
        background: #fff;
        box-shadow: none;
        border: none;
    }
}
.modern-btn {
    display: block !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    margin: 0 auto !important;
    width: 75% !important;
    max-width: 400px !important;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    padding: 20px 0;
    border-radius: 32px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(34,197,94,0.13), 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    outline: none;
}
.modern-btn .btn-icon {
    font-size: 1.5em;
    display: inline-block;
    vertical-align: middle;
}
.modern-btn:hover, .modern-btn:focus {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 12px 32px rgba(34,197,94,0.18);
    transform: translateY(-2px) scale(1.03);
} 