/* Contact Section */
.contact-section {
    position: relative;
    padding: 8rem 0 4rem;
    background-color: rgba(3, 7, 18, 0.8);
    overflow: hidden;
}

.contact-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-content {
    width: 100%;
    padding-right: 0;
}

.contact-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-description {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:nth-child(2) .contact-icon {
    background: var(--secondary);
}

.contact-item:nth-child(3) .contact-icon {
    background: var(--accent);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-text {
    color: white;
}

.contact-text span {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.contact-form-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
}

.contact-form-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    z-index: -1;
    transition: var(--transition);
}

.contact-form {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.form-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.12);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    min-height: 120px;
    max-height: 120px;
    resize: none;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent3);
}

.form-message.error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--accent);
}

.form-message.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Configurator Container */
.configurator-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    transform: translateY(0);
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
    background-color: rgba(4, 17, 36, 0.95);
    border: 1px solid rgba(0, 122, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 149, 255, 0.2);
    background-image: linear-gradient(to bottom right, rgba(6, 25, 55, 0.95), rgba(4, 17, 36, 0.95));
}

.configurator-container:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(0, 122, 255, 0.7);
    box-shadow: 0 10px 25px rgba(0, 149, 255, 0.5);
    background-image: linear-gradient(to bottom right, rgba(10, 30, 70, 0.95), rgba(4, 17, 36, 0.95));
}

.configurator-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 2rem;
    height: 100%;
    justify-content: center;
    z-index: 1;
}

.configurator-icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5680ff 0%, #00c2ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 24px;
    position: relative;
    transition: var(--transition);
}

.configurator-icon-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 90deg, #5680ff 180deg, #00c2ff 270deg, transparent 360deg);
    opacity: 0;
    transition: var(--transition);
    animation: rotateGradient 4s linear infinite;
}

.configurator-container:hover .configurator-icon-circle::before {
    opacity: 1;
    inset: -8px;
}

.configurator-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.configurator-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    max-width: 450px;
}

/* Responsive Design */
@media (min-width: 992px) {
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        gap: 2rem;
        align-items: end;
    }
    
    .contact-content {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }
    
    .contact-form-wrapper {
        grid-column: 2;
        grid-row: 1 / span 2;
        height: 100%;
        margin-top: 0;
        margin-bottom: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .configurator-container {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0;
        margin-bottom: 0;
        height: auto;
        align-self: end;
    }
    
    .contact-content, .contact-form-wrapper, .configurator-container {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .contact-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .configurator-container {
        margin-top: 1.5rem;
        margin-bottom: 0;
    }
    
    .configurator-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 6rem 0 3rem;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .configurator-title {
        font-size: 1.5rem;
    }
    
    .configurator-description {
        font-size: 0.9rem;
    }
    
    .form-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
    }
    
    .configurator-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 5rem 0 2.5rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .configurator-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .configurator-title {
        font-size: 1.3rem;
    }
    
    .configurator-wrapper {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 4rem 0 2rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .contact-item {
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .contact-text {
        font-size: 0.95rem;
        font-weight: 600;
        color: white;
    }
    
    .contact-text span {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 400;
    }
    
    .contact-form-wrapper {
        border-radius: 15px;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-form-bg {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .form-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: white;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    
    .form-label {
        color: white;
        font-weight: 600;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
        margin-bottom: 0.6rem;
    }
    
    .form-control {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: white;
        box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.1);
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
    }
    
    .form-control:focus {
        border-color: rgba(6, 182, 212, 0.8);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.1), 0 0 10px rgba(6, 182, 212, 0.3);
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    .form-message {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn.submit-btn {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
        font-weight: 700;
        letter-spacing: 1px;
        background: linear-gradient(135deg, #5680ff 0%, #00c2ff 100%);
        border: none;
        box-shadow: 0 4px 15px rgba(0, 149, 255, 0.4);
        text-transform: uppercase;
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .btn.submit-btn:hover {
        box-shadow: 0 6px 20px rgba(0, 149, 255, 0.6);
        transform: translateY(-2px);
    }
    
    .configurator-wrapper {
        padding: 1.25rem;
    }
    
    .configurator-title {
        font-weight: 700;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    
    .configurator-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        color: rgba(255, 255, 255, 0.95);
        line-height: 1.5;
    }
    
    .configurator-container {
        border-radius: 15px;
        border: 1px solid rgba(0, 122, 255, 0.3);
        background-color: rgba(4, 17, 36, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .configurator-container .btn.btn-primary {
        font-weight: 700;
        letter-spacing: 1px;
        padding: 0.9rem 1.2rem;
        background: linear-gradient(135deg, #5680ff 0%, #00c2ff 100%);
        border: none;
        box-shadow: 0 4px 15px rgba(0, 149, 255, 0.4);
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .configurator-container .btn.btn-primary:hover {
        box-shadow: 0 6px 20px rgba(0, 149, 255, 0.6);
        transform: translateY(-2px);
    }
}
