/* Styl dla strony kontaktowej - AfrohairPT - Lavender Glow 2025 */
/* @version 4.0 - Nowa paleta kolorów */

:root {
    /* Paleta kolorów Lavender Glow */
    --primary-color: #7A3CFF;
    --secondary-color: #B78DFF;
    --accent-color: #FBF8F5;
    --light-color: #E7CCFF;
    --dark-color: #1F1F1F;
    --text-main: #1F1F1F;
    --text-secondary: #3B3B3B;
    --btn-base: #6F2DFF;
    --btn-hover: #8247FF;
    
    /* Dodatkowe odcienie */
    --accent-soft: rgba(122, 60, 255, 0.08);
    --accent-medium: rgba(122, 60, 255, 0.2);
    --accent-glow: rgba(122, 60, 255, 0.35);
    
    /* Efekty */
    --shadow: 0 4px 25px rgba(122, 60, 255, 0.15);
    --shadow-hover: 0 8px 40px rgba(122, 60, 255, 0.25);
    --transition-speed: 0.3s;
}

/* ===== HERO SECTION WITH ELEGANT GLOW ===== */
.contact-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--light-color) 100%);
    color: var(--text-main);
    text-align: center;
    overflow: hidden;
}

/* Eleganckie światła */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: elegantLights 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes elegantLights {
    0%, 100% { opacity: 0.7; }
    25% { opacity: 1; transform: scale(1.05); }
    50% { opacity: 0.8; }
    75% { opacity: 1; transform: scale(0.98); }
}

/* Elegancki element dekoracyjny zamiast kuli disco */
.disco-ball {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 20%, 
        var(--primary-color) 40%,
        #fff 50%,
        var(--secondary-color) 60%,
        var(--light-color) 80%,
        var(--primary-color) 100%);
    box-shadow: 
        0 0 30px rgba(122, 60, 255, 0.4),
        0 0 60px rgba(122, 60, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    animation: elegantSpin 15s linear infinite;
    z-index: 10;
    opacity: 0.9;
}

.disco-ball::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
}

.disco-ball::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: 
        repeating-conic-gradient(from 0deg, 
            rgba(255, 255, 255, 0.6) 0deg 10deg, 
            rgba(183, 141, 255, 0.4) 10deg 20deg);
    opacity: 0.5;
}

@keyframes elegantSpin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Promienie światła */
.disco-rays {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 50% 0%,
            transparent 0deg,
            rgba(122, 60, 255, 0.08) 20deg,
            transparent 40deg,
            rgba(183, 141, 255, 0.05) 60deg,
            transparent 80deg,
            rgba(122, 60, 255, 0.08) 100deg,
            transparent 120deg,
            rgba(183, 141, 255, 0.05) 140deg,
            transparent 160deg,
            rgba(122, 60, 255, 0.08) 180deg,
            transparent 200deg,
            rgba(183, 141, 255, 0.05) 220deg,
            transparent 240deg,
            rgba(122, 60, 255, 0.08) 260deg,
            transparent 280deg,
            rgba(183, 141, 255, 0.05) 300deg,
            transparent 320deg,
            rgba(122, 60, 255, 0.08) 340deg,
            transparent 360deg);
    animation: raysSpin 25s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes raysSpin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Subtelne drobinki światła */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: sparkleFloat 5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--primary-color), 0 0 15px rgba(122, 60, 255, 0.4);
}

.sparkle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { left: 20%; top: 60%; animation-delay: 0.7s; }
.sparkle:nth-child(3) { left: 30%; top: 40%; animation-delay: 1.4s; }
.sparkle:nth-child(4) { left: 70%; top: 30%; animation-delay: 2.1s; }
.sparkle:nth-child(5) { left: 80%; top: 70%; animation-delay: 2.8s; }
.sparkle:nth-child(6) { left: 90%; top: 50%; animation-delay: 3.5s; }
.sparkle:nth-child(7) { left: 50%; top: 80%; animation-delay: 4.2s; }
.sparkle:nth-child(8) { left: 40%; top: 15%; animation-delay: 4.9s; }

@keyframes sparkleFloat {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(0) scale(0.5); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-15px) scale(1); 
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 100%);
    z-index: 4;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    padding: 2rem;
    margin-top: 60px;
}

.hero-title {
    font-family: 'Italiana', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-main);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-shadow: none;
}

/* ===== PHONE CTA BOX ===== */
.phone-cta-box {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin: -60px auto 3rem;
    max-width: 600px;
    position: relative;
    z-index: 20;
    box-shadow: 0 10px 50px rgba(122, 60, 255, 0.15);
    text-align: center;
    border: 1px solid #CFCFD9;
}

.phone-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 20px rgba(122, 60, 255, 0.35);
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.phone-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.phone-cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.phone-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--btn-base), var(--btn-hover));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(111, 45, 255, 0.35);
}

.phone-number:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(130, 71, 255, 0.45);
}

.phone-number svg {
    width: 24px;
    height: 24px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: rgba(122, 60, 255, 0.05);
}

.cta-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--accent-color);
    padding: 3rem 0 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-header h2 {
    font-family: 'Italiana', serif;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== CONTACT CARDS ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #CFCFD9;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(122, 60, 255, 0.3);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(122, 60, 255, 0.1), rgba(183, 141, 255, 0.15));
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(122, 60, 255, 0.15);
}

.contact-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 36px;
    height: 36px;
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.contact-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--btn-hover);
}

.contact-link:hover::after {
    width: 100%;
}

/* ===== MAP SECTION ===== */
.map-section {
    margin: 3rem 0;
    text-align: center;
}

.map-section h2 {
    font-family: 'Italiana', serif;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.map-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid rgba(122, 60, 255, 0.2);
    transition: all 0.3s ease;
}

.map-container:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    filter: grayscale(20%) contrast(1.05);
}

/* ===== FORM SECTION ===== */
.contact-form-section {
    background: white;
    padding: 4rem 3rem;
    border-radius: 30px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #CFCFD9;
    box-shadow: var(--shadow);
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(122, 60, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(183, 141, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.form-header h2 {
    font-family: 'Italiana', serif;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.3rem;
    border: 1px solid #CFCFD9;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--accent-color);
    color: var(--text-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(59, 59, 59, 0.5);
}

.form-group select {
    color: var(--text-secondary);
    cursor: pointer;
}

.form-group select option {
    background: white;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 20px rgba(122, 60, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-submit,
.btn-reset {
    padding: 1.1rem 3rem;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--btn-base), var(--btn-hover));
    color: white;
    box-shadow: 0 5px 25px rgba(111, 45, 255, 0.35);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(130, 71, 255, 0.45);
}

.btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #CFCFD9;
}

.btn-reset:hover {
    background: rgba(122, 60, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== FOOTER ADJUSTMENTS ===== */
footer {
    background: var(--dark-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .disco-ball {
        width: 60px;
        height: 60px;
    }
    
    .phone-cta-box {
        margin: -40px 1rem 2rem;
        padding: 2rem 1.5rem;
    }
    
    .phone-number {
        font-size: 1.2rem;
        padding: 0.9rem 1.5rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        margin: 2rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 45vh;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .disco-ball {
        width: 45px;
        height: 45px;
        top: 15px;
    }
    
    .contact-header h2,
    .form-header h2,
    .map-section h2 {
        font-size: 1.8rem;
    }
    
    .card-icon {
        width: 65px;
        height: 65px;
    }
    
    .card-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
