:root {
    --primary: #5cad92;
    --dark: #222;
    --gray: #666;
    --light: #f8f8f8;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HERO */
.hero {
    background: linear-gradient(to right, #5cad92, #c4d6d0);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.95;
}

/* CONTACT SECTION */
.contact-section {
    padding: 60px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* INFO */
.contact-info {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.contact-info h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
}

/* FORM */
.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.contact-form h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.form-group textarea {
    resize: none;
    height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5cad92;
}

/* FOOTER */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
}

/* SUCCESS OVERLAY */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

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

.success-box {
    background: #fff;
    padding: 40px 35px;
    border-radius: 16px;
    text-align: center;
    animation: scaleIn 0.4s ease;
}

.checkmark {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 40px;
    line-height: 70px;
    margin: auto;
    animation: tickPop 0.6s ease;
}

.success-box h3 {
    margin-top: 15px;
    color: var(--primary);
}

.success-box p {
    color: var(--gray);
    margin-top: 5px;
}

/* ANIMATIONS */
@keyframes tickPop {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* LOADER */
.loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-overlay.show {
    visibility: visible;
    opacity: 1;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #ddd;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* disable button */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }
}