﻿/* ========================================
   COLLEGECARE CONTACT PAGE STYLING
   Complete Responsive Design
======================================== */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

.contacts {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
}

/* Container Styling with Background */
.container {
    padding: 2rem 1rem;
    margin: 0 auto;
}

.row:first-child {
    background: white;
    border-radius: 20px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

    .row:first-child::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
    }


.col-lg-10.mx-auto {
    padding: 2rem 0rem;
    animation: slideUp 0.6s ease;
}


/* Header Section */
.text-center h1 {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

    .text-center h1::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), #667eea);
        border-radius: 2px;
    }

.text-center .lead {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.card-header {
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

    .card-header.bg-primary {
        background: linear-gradient(135deg, var(--primary-color), #667eea) !important;
    }

    .card-header.bg-success {
        background: linear-gradient(135deg, var(--success-color), #20c997) !important;
    }

.card-body {
    padding: 2rem;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
        transform: translateY(-2px);
    }

    .form-control:hover {
        border-color: var(--primary-color);
    }

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

    .btn-primary::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 ease, height 0.6s ease;
        z-index: 0;
    }

    .btn-primary:hover::before {
        width: 400px;
        height: 400px;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    }

    .btn-primary span {
        position: relative;
        z-index: 1;
    }

/* Contact Information Styling */
.mb-4 h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

    .mb-4 h6 i {
        margin-right: 0.5rem;
        background: linear-gradient(135deg, var(--primary-color), #667eea);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.text-muted {
    color: #6c757d !important;
    line-height: 1.6;
}

/* Social Media Styling */
.card-body.text-center h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.d-flex.justify-content-center a {
    transition: all var(--transition-speed) ease;
    border-radius: 50%;
    padding: 0.5rem;
}

    .d-flex.justify-content-center a:hover {
        transform: translateY(-3px) scale(1.1);
    }

.d-flex.justify-content-center .fa-facebook:hover {
    color: #1877f2 !important;
}

.d-flex.justify-content-center .fa-twitter:hover {
    color: #1da1f2 !important;
}

.d-flex.justify-content-center .fa-linkedin:hover {
    color: #0077b5 !important;
}

.d-flex.justify-content-center .fa-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Required Field Indicator */
.form-label:after {
    content: " *";
    color: var(--danger-color);
}

/* Textarea Specific Styling */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1199px) {
    .col-lg-10.mx-auto {
        padding: 2.5rem 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 991px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .col-lg-10.mx-auto {
        padding: 2rem 1.5rem;
    }

    .text-center h1 {
        font-size: 2.5rem;
    }

    .col-lg-4 {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .col-lg-10.mx-auto {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .text-center h1 {
        font-size: 2rem;
    }

    .text-center .lead {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .btn-primary {
        width: 100%;
        padding: 0.85rem 1rem;
    }

    .d-flex.justify-content-center .fab {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0.5rem;
    }

    .col-lg-10.mx-auto {
        padding: 1rem 0.75rem;
    }

    .text-center h1 {
        font-size: 1.75rem;
    }

        .text-center h1::after {
            width: 80px;
        }

    .text-center .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .form-control {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .mb-4 h6 {
        font-size: 0.9rem;
    }

    .text-muted {
        font-size: 0.85rem;
    }

    .d-flex.justify-content-center {
        gap: 1.5rem !important;
    }

        .d-flex.justify-content-center .fab {
            font-size: 1.25rem !important;
        }
}

@media (max-width: 400px) {
    .col-lg-10.mx-auto {
        padding: 0.75rem 0.5rem;
    }

    .text-center h1 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .row .col-md-6 {
        margin-bottom: 1rem;
    }

    .d-flex.justify-content-center {
        gap: 1rem !important;
    }
}

/* Form Validation Styling */
.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #0072ff;
}

.form-control:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--success-color);
}

/* Loading State for Button */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .btn-primary.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        right: 1rem;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
