.contact-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(135deg, var(--fp-green) 0%, var(--fp-teal) 50%, var(--fp-green) 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Animated Background Shapes for Form Card Only */
.contact-form-section::before,
.contact-form-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.contact-form-section::before {
    width: 200px;
    height: 200px;
    background: white;
    top: -50px;
    left: -50px;
}

.contact-form-section::after {
    width: 250px;
    height: 250px;
    background: white;
    bottom: -75px;
    right: -75px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.section-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group label span {
    color: #ffeb3b;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    background: white;
}

.form-control.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

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

/* Error Text */
.error-text {
    display: block;
    color: #ffeb3b;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--fp-teal) 0%, var(--fp-green) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.5s ease-out;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-circle {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    stroke: #4CAF50;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-message h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-message p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Error Message Styles */
.error-message {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.5s ease-out;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

.error-circle {
    stroke: #ff6b6b;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.error-x {
    stroke: #ff6b6b;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 57;
    stroke-dashoffset: 57;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.error-message p {
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .contact-form-section {
        padding: 30px 25px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .success-icon,
    .error-icon {
        width: 60px;
        height: 60px;
    }

    .success-message h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.7rem;
    }

    .contact-form-section {
        padding: 25px 20px;
    }

    .success-message,
    .error-message {
        padding: 25px 15px;
    }
}