/* Modern Contact Form Styles (2025 Trend) */

:root {
    --primary-color: #043e80;
    /* DPFP Blue */
    --accent-color: #f59e0b;
    /* DPFP Yellow */
    --text-color: #333;
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-focus: 0 0 0 4px rgba(4, 62, 128, 0.1);
    --error-color: #e53e3e;
    --success-color: #38a169;
}

.contact-page-wrapper {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--bg-gradient);
    overflow: hidden;
}

/* Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(4, 62, 128, 0.2);
    animation: float 20s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(245, 158, 11, 0.2);
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.contact-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    margin-top: 5px;
}

/* Glassmorphism Card */
.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: var(--glass-border);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* Form Fields */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-family: inherit;
}

.form-input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}

/* Floating Label */
.form-label {
    position: absolute;
    left: 20px;
    top: 17px;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-weight: 700;
}

/* Select specific fix */
select.form-input {
    appearance: none;
    cursor: pointer;
}

/* For select, we need to handle the label differently or use JS, 
   but :valid pseudo-class works if required is set and empty option is disabled */
select.form-input:valid~.form-label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-weight: 700;
}

/* Error Message */
.error-message {
    position: absolute;
    bottom: -22px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--error-color);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.form-group.error .form-input {
    border-color: var(--error-color);
    background: rgba(229, 62, 62, 0.05);
}

.form-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #032d5e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 62, 128, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .loader {
    display: block;
}

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

/* Status Message */
.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(56, 161, 105, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-status.error {
    display: block;
    background: rgba(229, 62, 62, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }

    .contact-header h1 {
        font-size: 2.5rem;
    }
}

/* Confirmation Styles */
.contact-confirm {
    animation: fadeIn 0.5s ease;
}

.confirm-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.confirm-list {
    margin-bottom: 30px;
}

.confirm-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: 700;
}

.confirm-value {
    font-size: 1.1rem;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-word;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.confirm-actions .btn-submit,
.confirm-actions .btn-secondary {
    flex: 1;
    min-width: 140px;
    width: auto;
}

.btn-secondary {
    flex: 1;
    padding: 16px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Completion Styles */
.contact-complete {
    text-align: center;
    animation: fadeIn 0.5s ease;
    padding: 20px 0;
}

.complete-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.complete-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
}

.complete-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: #032d5e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 62, 128, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}