* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 180, 219, 0.5);
    }
    50% {
        text-shadow: 0 0 16px rgba(0, 180, 219, 0.9);
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #e2e8f0;
}

.card {
    background-color: #1e293b;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.card-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #b0c4de;
    margin-bottom: 35px;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.input-field {
    flex: 1;
    text-align: center;
}

input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #e2e8f0;
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
    font-weight: 700;
}

select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23cbd5e1' viewBox='0 0 20 20'%3e%3cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.25 4.25a.75.75 0 01-1.06 0L5.23 8.29a.75.75 0 01.02-1.06z'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    text-align-last: center;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #00B4DB;
    box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.2);
}

#calculateBtn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 150, 180, 0.25);
}

#calculateBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 219, 0.4);
}

#calculateBtn:disabled {
    cursor: not-allowed;
    background: #5a6a7e;
    box-shadow: none;
    transform: translateY(0);
}

#calculateBtn:active {
    transform: translateY(0);
}

.result-area {
    margin-top: 35px;
    padding: 20px;
    border-radius: 12px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #334155;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
    gap: 4px;
}

.result-area.visible {
    opacity: 1;
    transform: scale(1);
}

.result-label {
    font-size: 15px;
    font-weight: 400;
    color: #94a3b8;
}

.result-date {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.result-area.success .result-date {
    color: #6ee7b7;
}

.result-area.error .result-label {
    font-size: 16px;
    color: #fda4af;
}

.content-page {
    max-width: 700px;
    text-align: left;
}

.content-text h2 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #475569;
    padding-bottom: 8px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.content-text ul {
    list-style-position: inside;
    padding-left: 10px;
    margin-bottom: 15px;
}

.content-text li {
    margin-bottom: 10px;
    color: #cbd5e1;
    line-height: 1.7;
}

.content-text a {
    color: #6ee7b7;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.content-text a:hover {
    color: #a7f3d0;
    text-decoration: underline;
}

.contact-form {
    width: 100%;
    margin-top: 20px;
}

.form-field {
    margin-bottom: 25px;
    text-align: left;
}

.form-field label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #e2e8f0;
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #00B4DB;
    box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.2);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.back-link-container {
    text-align: center;
    margin-top: 30px;
}

.back-link {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #334155;
    color: #e2e8f0;
}

.footer {
    margin-top: 40px;
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e2e8f0;
}

.creator-link {
    color: #00B4DB;
    font-weight: 500;
    text-decoration: none;
    animation: pulseGlow 3s infinite ease-in-out;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.creator-link:hover {
    color: #16d5ff;
    text-shadow: 0 0 12px rgba(0, 180, 219, 1);
}

@media (max-width: 600px) {
    .card {
        padding: 25px;
    }
    .input-group {
        flex-direction: column;
        gap: 20px;
    }
    .result-date {
        font-size: 28px;
    }
    .footer {
        margin-top: 30px;
    }
}
