
/* --- General Styles & Resets --- */
:root {
    --brand-color: #16a34a; /* Green 600 */
    --brand-color-hover: #15803d; /* Green 700 */
    --brand-color-focus-ring: rgba(22, 163, 74, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    margin: 0;
    line-height: 1.5;
}

/* Box-sizing reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Layout --- */
.container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* --- Typography --- */
header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

/* --- Form Container --- */
#contactForm {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    #contactForm {
        padding: 2rem;
    }
}

/* Spacing for form elements */
.form-group + .form-group {
    margin-top: 1.5rem;
}

/* --- Form Elements --- */
.form-label {
    text-align: left;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.required-asterisk {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-size: 1rem;
    background-color: #fff;
}

    .form-control:focus {
        outline: none;
        border-color: var(--brand-color);
        box-shadow: 0 0 0 3px var(--brand-color-focus-ring);
    }

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

.description-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7281;
}

/* --- File Upload Area --- */
.file-drop-area {
    margin-top: 0.25rem;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.375rem;
}

    .file-drop-area svg {
        margin: 0 auto 0.5rem auto;
        height: 3rem;
        width: 3rem;
        color: #9ca3af;
    }

.file-upload-prompt {
    font-size: 0.875rem;
    color: #4b5563;
}

.file-upload-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--brand-color);
    text-decoration: none;
}

    .file-upload-label:hover {
        color: var(--brand-color-hover);
    }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

#file-name {
    font-size: 0.75rem;
    color: #6b7281;
    margin-top: 0.25rem;
}

    #file-name.uploaded {
        color: #047857;
        font-weight: 500;
    }

/* --- Submit Button --- */
.submit-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    color: #fff;
    background-color: var(--brand-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

    .submit-button:hover {
        background-color: var(--brand-color-hover);
    }

    .submit-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px var(--brand-color-focus-ring);
    }

/* --- Messages --- */
#successMessage {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 0.5rem;
}






        /* The main container for the message */
        .container {
            text-align: center;
            background-color: #ffffff;
            padding: 0px 50px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            max-width: 90%;
        }

        /* Checkmark Icon Styling */
        .checkmark {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: block;
            stroke-width: 4;
            stroke: #4CAF50; /* Green color for success */
            stroke-miterlimit: 10;
            margin: 0 auto 20px;
            box-shadow: inset 0px 0px 0px #4CAF50;
            animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
        }

        .checkmark__circle {
            stroke-dasharray: 166;
            stroke-dashoffset: 166;
            stroke-width: 3;
            stroke-miterlimit: 10;
            stroke: #4CAF50;
            fill: none;
            animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
        }

        .checkmark__check {
            transform-origin: 50% 50%;
            stroke-dasharray: 48;
            stroke-dashoffset: 48;
            animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
        }

        /* Keyframe animations for the checkmark */
        @keyframes stroke {
            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes scale {
            0%, 100% {
                transform: none;
            }
            50% {
                transform: scale3d(1.1, 1.1, 1);
            }
        }

        @keyframes fill {
            100% {
                box-shadow: inset 0px 0px 0px 50px #4CAF50;
            }
        }
        
        /* Heading style */
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: #333;
        }

        /* Paragraph style */
        p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 30px;
            color: #666;
        }

        /* Button style for the link */
        .back-link {
            display: inline-block;
            text-decoration: none;
            background-color: #007bff;
            color: #ffffff;
            padding: 12px 25px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .back-link:hover {
            background-color: #0056b3;
            transform: translateY(-2px);
        }



/* Basic CSS Reset */
body.sf-confirmation-body,
.sf-container h1,
.sf-container p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Using a clean, modern font */
body.sf-confirmation-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f4f7f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

/* The main container for the message */
.sf-container {
    margin: auto;
    text-align: center;
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 450px;
}

/* Checkmark Icon Styling */
.sf-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #4CAF50; /* Green color for success */
    stroke-miterlimit: 10;
    margin: 0 auto 20px;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: sf-fill .4s ease-in-out .4s forwards, sf-scale .3s ease-in-out .9s both;
}

.sf-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: sf-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.sf-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: sf-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Keyframe animations for the checkmark */
@keyframes sf-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes sf-scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes sf-fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #4CAF50;
    }
}

/* Heading style */
.sf-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Paragraph style */
.sf-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
}

/* Button style for the link */
.sf-back-link {
    display: inline-block;
    text-decoration: none;
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .sf-back-link:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }