/* Contact Section Styles */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 120px 0;
    overflow: hidden;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Decorations */
.contact-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.contact-box {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.06;
    border-radius: 12px;
    animation: rotateFloat 15s ease-in-out infinite;
}

.decoration-box-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 8%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

[dir="ltr"] .decoration-box-1 {
    right: auto;
    left: 8%;
}

.decoration-box-2 {
    width: 140px;
    height: 140px;
    bottom: 20%;
    left: 10%;
    transform: rotate(-30deg);
    animation-delay: 3s;
}

[dir="ltr"] .decoration-box-2 {
    left: auto;
    right: 10%;
}

.contact-circle {
    position: absolute;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.15;
    animation: pulseRotate 10s ease-in-out infinite;
}

.decoration-circle-1 {
    width: 280px;
    height: 280px;
    top: 25%;
    right: -120px;
    animation-delay: 1.5s;
}

[dir="ltr"] .decoration-circle-1 {
    right: auto;
    left: -120px;
}

@keyframes rotateFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0) scale(1);
    }
    25% {
        transform: rotate(50deg) translateY(-25px) scale(1.05);
    }
    50% {
        transform: rotate(45deg) translateY(-15px) scale(1);
    }
    75% {
        transform: rotate(40deg) translateY(-20px) scale(0.95);
    }
}

@keyframes pulseRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.25;
    }
}

/* Contact Content - Two Column Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

[dir="ltr"] .contact-content {
    direction: ltr;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    position: relative;
    z-index: 2;
}

/* Contact Header */
.contact-header {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease-out;
}

.contact-header.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-header .section-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-header .section-label {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.contact-header .section-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.contact-header .section-label-line {
    flex: 1;
    max-width: 150px;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--accent-color) 0px,
        var(--accent-color) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.6;
}

[dir="ltr"] .contact-header .section-label-line {
    background: repeating-linear-gradient(
        to left,
        var(--accent-color) 0px,
        var(--accent-color) 8px,
        transparent 8px,
        transparent 16px
    );
}

.contact-header-decorative {
    position: relative;
    margin-bottom: 15px;
}

.contact-star-icon {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.8;
    animation: starPulse 2s ease-in-out infinite;
}

[dir="ltr"] .contact-star-icon {
    right: auto;
    left: 20px;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

.contact-main-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.contact-form.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 106, 50, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f2937' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 45px;
}

[dir="rtl"] .form-group select {
    background-position: right 18px center;
    padding-left: 18px;
    padding-right: 45px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.btn-submit {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.3);
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 106, 50, 0.4);
}

/* Contact Image Wrapper */
.contact-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 600px;
}

.contact-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out 0.4s;
}

[dir="ltr"] .contact-image {
    transform: translateX(-30px);
}

.contact-image.animate-fade-in {
    opacity: 1;
    transform: translateX(0);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-section {
        padding: 100px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-image-wrapper {
        order: 1;
        min-height: 400px;
    }

    .contact-form-wrapper {
        order: 2;
    }

    .contact-main-title {
        font-size: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0;
    }

    .contact-content {
        gap: 50px;
    }

    .contact-header {
        margin-bottom: 30px;
    }

    .contact-main-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-image-wrapper {
        min-height: 350px;
    }

    .contact-form {
        gap: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 15px;
    }

    .btn-submit {
        padding: 16px 35px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-content {
        gap: 40px;
    }

    .contact-header {
        margin-bottom: 25px;
    }

    .contact-main-title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .contact-description {
        font-size: 15px;
    }

    .contact-star-icon {
        font-size: 20px;
        top: -8px;
        right: 15px;
    }

    [dir="ltr"] .contact-star-icon {
        right: auto;
        left: 15px;
    }

    .contact-image-wrapper {
        min-height: 300px;
    }

    .contact-form {
        gap: 18px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 14px 30px;
        font-size: 14px;
    }
}

/* Contact Details Section */
.contact-details-section {
    position: relative;
    padding: 80px 0 30px 0;
}

.contact-details-section .container {
    position: relative;
    z-index: 2;
}

.details-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.details-box {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.07;
    border-radius: 12px;
    animation: rotateFloat 16s ease-in-out infinite;
}

.details-box-1 {
    width: 160px;
    height: 160px;
    top: -30px;
    right: 6%;
    transform: rotate(35deg);
    animation-delay: 0.5s;
}

[dir="ltr"] .details-box-1 {
    right: auto;
    left: 6%;
}

.details-box-2 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 8%;
    transform: rotate(-25deg);
    animation-delay: 3.2s;
}

[dir="ltr"] .details-box-2 {
    left: auto;
    right: 8%;
}

.details-circle {
    position: absolute;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.18;
    animation: pulseRotate 12s ease-in-out infinite;
}

.details-circle-1 {
    width: 240px;
    height: 240px;
    top: 20%;
    right: -100px;
    animation-delay: 1.2s;
}

[dir="ltr"] .details-circle-1 {
    right: auto;
    left: -100px;
}

.details-circle-2 {
    width: 180px;
    height: 180px;
    bottom: 18%;
    left: -80px;
    animation-delay: 2.4s;
}

[dir="ltr"] .details-circle-2 {
    left: auto;
    right: -80px;
}

.contact-details-header {
    text-align: center;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    position: relative;
    padding: 6px 0 10px 0;
}

.contact-details-header.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-details-header::before,
.contact-details-header::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.18;
    z-index: 0;
}

.contact-details-header::before {
    top: -30px;
    right: 15%;
    background: radial-gradient(circle, rgba(11,106,50,0.25) 0%, transparent 70%);
}

.contact-details-header::after {
    bottom: -30px;
    left: 15%;
    background: radial-gradient(circle, rgba(212,175,55,0.25) 0%, transparent 70%);
}

.contact-details-header .section-label-wrapper {
    position: relative;
    z-index: 1;
}

.contact-details-header .section-title {
    position: relative;
    z-index: 1;
    margin: 10px 0 8px 0;
    background: linear-gradient(90deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-details-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(11,106,50,0.25);
}

.contact-details-header .section-description {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 14px auto 0 auto;
    line-height: 1.9;
    color: var(--text-secondary);
    padding: 0 10px;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 18px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: start;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

[dir="ltr"] .contact-card::before {
    transform-origin: left;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(11,106,50,0.06), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11,106,50,0.08), rgba(212,175,55,0.10));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.06);
    background: linear-gradient(135deg, rgba(11,106,50,0.15), rgba(212,175,55,0.18));
}

.contact-card-title {
    margin: 0 0 6px 0;
    font-weight: 800;
}

.contact-card-text {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.25s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.contact-card-actions {
    display: inline-flex;
    gap: 10px;
}

.btn-contact-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-contact-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.btn-contact-action i.fa-whatsapp {
    color: #25D366;
}

.btn-contact-action i.fa-phone {
    color: #e8fff0;
}

.btn-contact-action i.fa-paper-plane {
    color: #fff6d5;
}

.branches-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.branch-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.branch-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .contact-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Alternative, non-box style for contact details ========== */
/* Apply a lean, line-accent style instead of boxed cards for the details grid */
.contact-details-section .contact-details-grid {
    gap: 12px;
}

.contact-details-section .contact-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 14px 10px 16px 14px;
    position: relative;
}

/* Full-width subtle divider per item */
.contact-details-section .contact-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    opacity: 0.9;
}

/* Vertical accent line */
.contact-details-section .contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0.25);
    transform-origin: bottom;
    transition: transform 0.25s ease;
    border-radius: 2px;
}

[dir="ltr"] .contact-details-section .contact-card::before {
    right: auto;
    left: 0;
}

.contact-details-section .contact-card:hover::before {
    transform: scaleY(1);
}

/* Icon becomes circular outline token */
.contact-details-section .contact-card-icon {
    background: transparent;
    border: 2px solid rgba(11,106,50,0.25);
    color: var(--primary-color);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-details-section .contact-card:hover .contact-card-icon {
    border-color: var(--primary-color);
    transform: scale(1.04);
}

/* Titles and text tighter in this mode */
.contact-details-section .contact-card-title {
    margin: 0 0 4px 0;
    letter-spacing: 0.2px;
}

.contact-details-section .contact-card-text {
    margin-bottom: 6px;
}

/* Buttons: ghost → fill on hover */
.contact-details-section .btn-contact-action {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    box-shadow: none;
}

.contact-details-section .btn-contact-action:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 18px rgba(11,106,50,0.15);
}

/* Branch chips lighter in this mode */
.contact-details-section .branches-list .branch-item {
    background: transparent;
    border: 1px dashed var(--border-color);
}

.contact-details-section .branches-list .branch-item:hover {
    border-color: var(--primary-light);
    box-shadow: none;
}

/* Responsive tweaks for the lean style */
@media (max-width: 576px) {
    .contact-details-section .contact-card {
        padding: 12px 6px 14px 12px;
    }
}

@media (max-width: 576px) {
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Message Styles - Enhanced */
.form-message {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    animation: slideDownBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.form-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    z-index: 1;
}

[dir="ltr"] .form-message::before {
    right: auto;
    left: 0;
}

.form-message-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.form-message-success::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.form-message-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.form-message-error::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.form-message i {
    font-size: 24px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
}

.form-message-success i {
    color: #10b981;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.form-message-error i {
    color: #ef4444;
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.form-message span {
    flex: 1;
    z-index: 2;
    position: relative;
    font-weight: 500;
}

.form-message-close {
    background: rgba(255, 255, 255, 0.6);
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.8;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.form-message-close:hover {
    background: rgba(255, 255, 255, 0.9);
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
}

.form-message-success .form-message-close:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
}

.form-message-error .form-message-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

/* Success message specific enhancements */
.form-message-success {
    position: relative;
}

.form-message-success::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: successGlow 3s ease-in-out infinite;
    pointer-events: none;
}

/* Error message specific enhancements */
.form-message-error {
    position: relative;
}

.form-message-error::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    animation: errorPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes slideDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes successGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes errorPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-message {
        padding: 16px 20px;
        gap: 12px;
        font-size: 14px;
    }
    
    .form-message i {
        font-size: 20px;
    }
    
    .form-message-close {
        width: 28px;
        height: 28px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .form-message {
        padding: 14px 18px;
        gap: 10px;
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .form-message i {
        font-size: 18px;
    }
    
    .form-message-close {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

/* Loading state for submit button */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit .fa-spinner {
    animation: spin 1s linear infinite;
}

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