/* Contact Page Specific Styles */

/* Contact Page */
.contact-page {
    padding: 60px 0 80px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    padding-left: 130px;
    padding-right: 180px;
}

/* Contact Info */
.contact-info h1 {
    font-size: 38px;
    font-weight: 700;
    color: #000;
    margin-bottom: 50px;
    line-height: 1.2;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item:first-child {
    display: block;
    flex-direction: column;
}

.contact-item:nth-child(n+3) {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: 30px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-item a {
    font-size: 30px;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
    line-height: 1.6;
}

.contact-item:nth-child(2) a {
    font-weight: 700;
}

.contact-item a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

.social-btn {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-btn img {
    width: 100%;
    height: auto;
}

.marketplace-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.marketplace-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.marketplace-btn span:not(.wb-icon):not(.ozon-icon) {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.marketplace-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.marketplace-btn.wb {
    background: #6a00a0;
    color: #fff;
}

.marketplace-btn.ozon {
    background: #005bfe;
    color: #fff;
}

.wb-icon,
.ozon-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 36px;
    color: #fff;
    line-height: 1.2;
}

/* Contact Form Section */
.contact-form-section {
    background: #fff;
    padding: 0;
}

.contact-form-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
    line-height: 1.2;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ccc;
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fff;
    color: #999;
}

#name,
#surname {
    width: 410px;
    height: 50px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    color: #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

#message {
    height: 160px;
}

.submit-btn {
    background: #FF1493;
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    margin-top: 0;
    width: 100%;
}

.submit-btn:hover {
    background: #E6007E;
    transform: translateY(-2px);
}

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

/* Success Message */
.success-message {
    display: none;
    background: #4CAF50;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 20px;
    animation: slideIn 0.3s ease;
}

.success-message.show {
    display: block;
}

/* Contact success modal 560×650 */
.contact-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.contact-success-overlay[hidden] {
    display: none !important;
}

.contact-success-modal {
    position: relative;
    width: 560px;
    height: 650px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.contact-success-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #111;
    cursor: pointer;
}

.contact-success-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 40px 0;
}

.contact-success-logo {
    width: 180px;
    height: auto;
    display: block;
    margin-bottom: 48px;
}

.contact-success-title {
    margin: 0 0 18px;
    font-size: 36px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.contact-success-text {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #111;
    line-height: 1.45;
}

.contact-success-gif {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 600px) {
    .contact-success-modal {
        width: 100%;
        height: min(650px, 90vh);
    }

    .contact-success-body {
        padding: 56px 24px 0;
    }

    .contact-success-logo {
        width: 140px;
        margin-bottom: 32px;
    }

    .contact-success-title {
        font-size: 28px;
    }

    .contact-success-text {
        font-size: 16px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-content {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .contact-info h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .contact-item h3,
    .contact-item a {
        font-size: 16px;
    }

    .contact-form-section {
        padding: 30px 20px;
    }

    .contact-form-section h2 {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .marketplace-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .contact-page {
        padding: 40px 0 60px;
    }

    .contact-info h1 {
        font-size: 28px;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .contact-form-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .submit-btn {
        width: 100%;
    }
}
