/* ============================================
   CONTACT PAGE STYLES - WEBCAREX
   ============================================ */

.page-contact {
    padding-top: var(--header-height);
}

/* Hero Section */
.contact-hero-section {
    padding: 6rem 0 4rem;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.05) 0%,
        rgba(123, 44, 191, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gradient-x-1-start) 20%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 80%,
        transparent
    );
    opacity: 0.5;
}

.contact-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.contact-hero-title .text-gradient {
    background: linear-gradient(
        135deg,
        var(--gradient-x-1-start) 0%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(123, 44, 191, 0.3));
}

.contact-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.4;
    opacity: 0.95;
}

/* Contact Info Section */
.contact-info-section {
    padding: 5rem 0;
    background: var(--bg-section);
    position: relative;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gradient-x-1-start) 20%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 80%,
        transparent
    );
    opacity: 0.5;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gradient-x-1-start) 20%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 80%,
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 44, 191, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.contact-info-card:hover::before {
    opacity: 1;
}

.contact-info-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(
        135deg,
        var(--gradient-x-1-start) 0%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 100%
    );
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.contact-info-icon svg {
    width: 32px;
    height: 32px;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.contact-info-text {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.contact-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gradient-x-1-start);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info-link:hover {
    color: var(--gradient-x-2-start);
    gap: 0.75rem;
}

.contact-info-link .arrow {
    transition: transform 0.3s ease;
}

.contact-info-link:hover .arrow {
    transform: translateX(3px);
}

/* Contact Form Section */
.contact-form-section {
    padding: 3rem 0;
    background: var(--bg-darker);
    position: relative;
}

.contact-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    line-height: 1.2;
}

.contact-form-title .text-gradient {
    background: linear-gradient(
        135deg,
        var(--gradient-x-1-start) 0%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Offerte Panel */
.offerte-panel {
    background: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.offerte-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gradient-x-1-start) 20%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 80%,
        transparent
    );
    opacity: 0.6;
}

/* Progress Bar */
.offerte-progress {
    margin-bottom: 0.75rem;
}

.offerte-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.offerte-progress-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 25%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.offerte-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.offerte-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.offerte-step.active {
    opacity: 1;
}

.offerte-step.completed {
    opacity: 1;
}

.offerte-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
    position: relative;
}

.offerte-step.active .offerte-step-number {
    background: #22c55e;
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transform: scale(1.1);
}

.offerte-step.completed .offerte-step-number {
    background: #22c55e;
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    font-size: 0;
}

.offerte-step.completed .offerte-step-number::after {
    content: '✓';
    font-size: 1.5rem;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
    line-height: 1;
}

.offerte-step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
    transition: color 0.3s ease;
}

.offerte-step.active .offerte-step-label {
    color: var(--text-white);
}

.offerte-step.completed .offerte-step-label {
    color: var(--text-white);
}

/* Step Content */
.offerte-step-content {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.offerte-step-content.active {
    display: block;
}

.offerte-step-header {
    text-align: center;
    margin-bottom: 1rem;
}

.offerte-step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.offerte-step-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: #ff6b35;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gradient-x-1-start);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    display: block;
    color: #ff6b35;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #ff6b35;
}

/* Project Type Grid */
.project-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-type-card {
    position: relative;
    background: var(--bg-darker);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.project-type-card:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 44, 191, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.project-type-card input[type="radio"]:checked + .project-type-icon {
    background: linear-gradient(
        135deg,
        var(--gradient-x-1-start) 0%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 100%
    );
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.project-type-card input[type="radio"]:checked ~ .project-type-title {
    color: var(--gradient-x-1-start);
}

.project-type-card input[type="radio"]:checked {
    border-color: var(--gradient-x-1-start);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.project-type-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.project-type-icon svg {
    width: 24px;
    height: 24px;
}

.project-type-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.project-type-description {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Radio Group */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(123, 44, 191, 0.3);
    transform: translateY(-1px);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #22c55e;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
}

.radio-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    user-select: none;
    transition: color 0.3s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: var(--text-white);
    font-weight: 600;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.radio-option.selected,
.radio-option:focus-within {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Checkbox Large */
.checkbox-label-large {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.checkbox-label-large input[type="checkbox"] {
    display: none;
}

.checkbox-custom-large {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checkbox-label-large input[type="checkbox"]:checked + .checkbox-custom-large {
    background: #22c55e;
    border-color: #22c55e;
}

.checkbox-label-large input[type="checkbox"]:checked + .checkbox-custom-large::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 700;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
    user-select: none;
}

.checkbox-text .text-link {
    color: var(--gradient-x-1-start);
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-text .text-link:hover {
    color: var(--gradient-x-2-start);
    text-decoration: underline;
}

/* Overview Section */
.overview-section {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-item:last-child {
    border-bottom: none;
}

.overview-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-value {
    font-size: 0.875rem;
    color: var(--text-white);
    line-height: 1.5;
}

/* Form Actions */
.offerte-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.offerte-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.offerte-btn-primary {
    background: linear-gradient(
        135deg,
        var(--gradient-x-1-start) 0%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 100%
    );
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.offerte-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.4);
}

.offerte-btn-primary:active {
    transform: translateY(0);
}

.offerte-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offerte-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.offerte-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.offerte-btn .arrow {
    transition: transform 0.3s ease;
}

.offerte-btn:hover .arrow {
    transform: translateX(3px);
}

.offerte-btn-submit {
    min-width: 200px;
    justify-content: center;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.offerte-success {
    text-align: center;
    padding: 2rem 1.5rem;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(
        135deg,
        var(--gradient-x-1-start) 0%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(123, 44, 191, 0.4);
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.success-text {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .contact-hero-section {
        padding: 4rem 0 3rem;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .offerte-panel {
        padding: 2rem 1.5rem;
    }
    
    .offerte-step-label {
        font-size: 0.75rem;
    }
    
    .project-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form-title {
        font-size: 2rem;
    }
    
    .offerte-panel {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .offerte-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .offerte-step-label {
        font-size: 0.7rem;
    }
    
    .offerte-step-title {
        font-size: 1.5rem;
    }
    
    .project-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .project-type-card {
        padding: 1rem;
    }
    
    .project-type-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .project-type-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .project-type-title {
        font-size: 0.875rem;
    }
    
    .project-type-description {
        font-size: 0.7rem;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 0.625rem 0.875rem;
    }
    
    .radio-label {
        font-size: 0.8125rem;
    }
    
    .offerte-form-actions {
        flex-direction: column;
    }
    
    .offerte-btn {
        width: 100%;
        justify-content: center;
    }
}
