/* ==========================================================================
   ELVEDON SOCIAL MEDIA MARKETING - CONTACT PAGE STYLESHEET
   --------------------------------------------------------------------------
   Merged stylesheet for the contact page. Combines, in page order:
     1. Hero section (content + form)  (was contact-hero.css)
     2. Areas We Cover section         (was contact-areas.css)
     3. Form animation & states        (was contact-animation.css)
   Font: DM Sans  |  Colours: #3578e5 blue / #e54c35 red / #35b078 green
   Class names preserved exactly from the original section files.
   ========================================================================== */


/* ##########################################################################
   1. HERO SECTION - CONTENT & FORM
   ########################################################################## */

.elvedon-contact {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 100px 24px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background pattern */
.elvedon-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Gradient glow */
.elvedon-contact::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(53, 176, 120, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.elvedon-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Left Column - Content
   ========================================================================== */

.elvedon-contact-content {
    padding-right: 40px;
    min-width: 0;
}

.elvedon-contact-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(53, 120, 229, 0.12) 0%, rgba(53, 176, 120, 0.12) 100%);
    border: 1px solid rgba(53, 120, 229, 0.15);
    color: #3578e5;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.elvedon-contact-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 20px 0;
    letter-spacing: -0.025em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.elvedon-contact-title span {
    background: linear-gradient(90deg, #3578e5, #35b078);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elvedon-contact-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0 0 40px 0;
}

/* ==========================================================================
   Contact Details
   ========================================================================== */

.elvedon-contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.elvedon-contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
}

a.elvedon-contact-detail:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(53, 120, 229, 0.2);
    transform: translateX(4px);
}

.elvedon-contact-detail-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(53, 120, 229, 0.15) 0%, rgba(53, 176, 120, 0.15) 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.elvedon-contact-detail-icon i {
    font-size: 18px;
    color: #3578e5;
}

.elvedon-contact-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.elvedon-contact-detail-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.elvedon-contact-detail-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Right Column - Form
   ========================================================================== */

.elvedon-contact-form-wrapper {
    position: relative;
    min-width: 0;
}

.elvedon-contact-form-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.elvedon-contact-form-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.elvedon-contact-form-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* Form Fields */
.elvedon-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.elvedon-contact-form-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.elvedon-contact-form-input,
.elvedon-contact-form-textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.elvedon-contact-form-input::placeholder,
.elvedon-contact-form-textarea::placeholder {
    color: #94a3b8;
}

.elvedon-contact-form-input:focus,
.elvedon-contact-form-textarea:focus {
    outline: none;
    border-color: #3578e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(53, 120, 229, 0.1);
}

.elvedon-contact-form-textarea {
    resize: none;
    min-height: 140px;
}

/* Submit Button */
.elvedon-contact-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #3578e5 0%, #2a62c4 100%);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(53, 120, 229, 0.35);
    margin-top: 8px;
}

.elvedon-contact-form-btn i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.elvedon-contact-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(53, 120, 229, 0.45);
}

.elvedon-contact-form-btn:hover i {
    transform: translateX(4px);
}

.elvedon-contact-form-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .elvedon-contact {
        padding: 80px 24px;
    }

    .elvedon-contact-container {
        gap: 60px;
    }

    .elvedon-contact-content {
        padding-right: 20px;
    }

    .elvedon-contact-title {
        font-size: 40px;
    }

    .elvedon-contact-form-card {
        padding: 40px;
    }
}

/* ==========================================================================
   Responsive - Mobile Stack
   ========================================================================== */

@media screen and (max-width: 900px) {
    .elvedon-contact {
        padding: 80px 20px;
        min-height: auto;
    }

    .elvedon-contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .elvedon-contact-content {
        padding-right: 0;
        text-align: center;
    }

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

    .elvedon-contact-text {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }

    .elvedon-contact-details {
        max-width: 400px;
        margin: 0 auto;
    }

    .elvedon-contact-detail {
        text-align: left;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media screen and (max-width: 600px) {
    .elvedon-contact {
        padding: 60px 16px;
    }

    .elvedon-contact-container {
        gap: 40px;
    }

    .elvedon-contact-label {
        font-size: 11px;
        padding: 8px 14px;
        letter-spacing: 0.08em;
    }

    .elvedon-contact-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .elvedon-contact-text {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .elvedon-contact-details {
        gap: 12px;
        max-width: 100%;
    }

    .elvedon-contact-detail {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 12px;
    }

    .elvedon-contact-detail-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 10px;
    }

    .elvedon-contact-detail-icon i {
        font-size: 16px;
    }

    .elvedon-contact-detail-label {
        font-size: 11px;
    }

    .elvedon-contact-detail-value {
        font-size: 14px;
    }

    .elvedon-contact-form-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .elvedon-contact-form-title {
        font-size: 22px;
    }

    .elvedon-contact-form-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .elvedon-contact-form {
        gap: 18px;
    }

    .elvedon-contact-form-label {
        font-size: 13px;
    }

    .elvedon-contact-form-input,
    .elvedon-contact-form-textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .elvedon-contact-form-textarea {
        min-height: 120px;
    }

    .elvedon-contact-form-btn {
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        border-radius: 10px;
    }
}

/* ==========================================================================
   Responsive - Small Mobile (iPhone SE, etc.)
   ========================================================================== */

@media screen and (max-width: 380px) {
    .elvedon-contact {
        padding: 50px 12px;
    }

    .elvedon-contact-label {
        font-size: 10px;
        padding: 6px 12px;
    }

    .elvedon-contact-title {
        font-size: 24px;
    }

    .elvedon-contact-text {
        font-size: 14px;
    }

    .elvedon-contact-detail {
        padding: 10px 12px;
        gap: 10px;
    }

    .elvedon-contact-detail-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .elvedon-contact-detail-icon i {
        font-size: 14px;
    }

    .elvedon-contact-detail-label {
        font-size: 10px;
    }

    .elvedon-contact-detail-value {
        font-size: 13px;
    }

    .elvedon-contact-form-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .elvedon-contact-form-title {
        font-size: 20px;
    }

    .elvedon-contact-form-subtitle {
        font-size: 13px;
    }

    .elvedon-contact-form-input,
    .elvedon-contact-form-textarea {
        padding: 12px 14px;
    }

    .elvedon-contact-form-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}


/* ##########################################################################
   2. AREAS WE COVER SECTION
   ########################################################################## */

.elvedon-contact-areas {
    background: #ffffff;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

/* Subtle background decoration */
.elvedon-contact-areas::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(53, 120, 229, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.elvedon-contact-areas::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(53, 176, 120, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.elvedon-contact-areas-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.elvedon-contact-areas-header {
    text-align: center;
    margin-bottom: 50px;
}

.elvedon-contact-areas-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(53, 120, 229, 0.08) 0%, rgba(53, 176, 120, 0.08) 100%);
    color: #3578e5;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.elvedon-contact-areas-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.elvedon-contact-areas-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Tags Grid
   ========================================================================== */

.elvedon-contact-areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.elvedon-contact-areas-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    padding: 14px 24px;
    border-radius: 60px;
    transition: all 0.3s ease;
    cursor: default;
}

.elvedon-contact-areas-tag i {
    font-size: 12px;
    color: #35b078;
    transition: transform 0.2s ease;
}

.elvedon-contact-areas-tag:hover {
    background: linear-gradient(135deg, #3578e5 0%, #35b078 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53, 120, 229, 0.25);
}

.elvedon-contact-areas-tag:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media screen and (max-width: 900px) {
    .elvedon-contact-areas {
        padding: 70px 20px;
    }

    .elvedon-contact-areas-title {
        font-size: 32px;
    }

    .elvedon-contact-areas-grid {
        gap: 12px;
    }

    .elvedon-contact-areas-tag {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media screen and (max-width: 600px) {
    .elvedon-contact-areas {
        padding: 50px 16px;
    }

    .elvedon-contact-areas-header {
        margin-bottom: 32px;
    }

    .elvedon-contact-areas-label {
        font-size: 11px;
        padding: 8px 14px;
    }

    .elvedon-contact-areas-title {
        font-size: 26px;
    }

    .elvedon-contact-areas-text {
        font-size: 14px;
    }

    .elvedon-contact-areas-grid {
        gap: 8px;
    }

    .elvedon-contact-areas-tag {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
        border-radius: 50px;
    }

    .elvedon-contact-areas-tag i {
        font-size: 10px;
    }
}

/* ==========================================================================
   Responsive - Small Mobile (iPhone SE, etc.)
   ========================================================================== */

@media screen and (max-width: 380px) {
    .elvedon-contact-areas {
        padding: 40px 12px;
    }

    .elvedon-contact-areas-header {
        margin-bottom: 28px;
    }

    .elvedon-contact-areas-label {
        font-size: 10px;
        padding: 6px 12px;
    }

    .elvedon-contact-areas-title {
        font-size: 22px;
    }

    .elvedon-contact-areas-text {
        font-size: 13px;
    }

    .elvedon-contact-areas-grid {
        gap: 6px;
    }

    .elvedon-contact-areas-tag {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .elvedon-contact-areas-tag i {
        font-size: 9px;
    }
}


/* ##########################################################################
   3. CONTACT FORM ANIMATION & STATES
   --------------------------------------------------------------------------
   Loading overlay, spinner, validation error states, success icon.
   Note: .elvedon-contact-form-card position:relative below is required so
   the loading overlay anchors to the form card (card styling is in §1).
   ########################################################################## */

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.contact-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 24px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-animation-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Spinner */
.contact-animation-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #3578e5;
    border-radius: 50%;
    animation: contact-animation-spin 0.8s linear infinite;
}

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

/* Loading text */
.contact-animation-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
}

/* Dots animation */
.contact-animation-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.contact-animation-dots span {
    width: 4px;
    height: 4px;
    background-color: #3578e5;
    border-radius: 50%;
    animation: contact-animation-bounce 1.4s ease-in-out infinite both;
}

.contact-animation-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.contact-animation-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.contact-animation-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes contact-animation-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Form Card Position (for overlay)
   ========================================================================== */

.elvedon-contact-form-card {
    position: relative;
}

/* ==========================================================================
   Error States
   ========================================================================== */

.elvedon-contact-form-input--error,
.elvedon-contact-form-textarea.elvedon-contact-form-input--error {
    border-color: #e54c35 !important;
    background-color: #fef2f2 !important;
}

.elvedon-contact-form-input--error:focus,
.elvedon-contact-form-textarea.elvedon-contact-form-input--error:focus {
    box-shadow: 0 0 0 4px rgba(229, 76, 53, 0.15) !important;
}

.elvedon-contact-form-error {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #e54c35;
    margin-top: 6px;
    animation: contact-animation-shake 0.4s ease;
}

@keyframes contact-animation-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-4px);
    }
    40%, 80% {
        transform: translateX(4px);
    }
}

/* ==========================================================================
   Success Icon (optional for overlay)
   ========================================================================== */

.contact-animation-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-animation-success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #35b078 0%, #2a9462 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: contact-animation-pop 0.3s ease;
}

.contact-animation-success-icon i {
    font-size: 24px;
    color: #ffffff;
}

@keyframes contact-animation-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.contact-animation-success-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #35b078;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 600px) {
    .contact-animation-overlay {
        border-radius: 18px;
    }

    .contact-animation-spinner {
        width: 40px;
        height: 40px;
    }

    .contact-animation-text {
        font-size: 15px;
    }
}

@media screen and (max-width: 380px) {
    .contact-animation-overlay {
        border-radius: 16px;
    }

    .contact-animation-spinner {
        width: 36px;
        height: 36px;
    }

    .contact-animation-text {
        font-size: 14px;
    }
}
