/**
 * Konect - Custom Contact Page Styles
 */

/* Page Container */
.konect-contact-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Hero Section */
.contact-hero {
    text-align: center;
    margin-bottom: 50px;
}

.contact-hero h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 1.15em;
    color: #666;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Form Card */
.contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

.contact-form-card h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.contact-form-card .form-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 28px;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #ff5501;
}

.form-group .input-text,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.form-group .input-text:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff5501;
    box-shadow: 0 0 0 3px rgba(255, 85, 1, 0.1);
}

.form-group .input-text::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

/* Submit Button - override Magento .action.primary using ID selector */
#contact-form .btn-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #ff5501 !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 32px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
    width: 100% !important;
    margin-top: 8px;
    box-sizing: border-box !important;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
}

#contact-form .btn-submit:hover {
    background: #e64d00 !important;
    transform: translateY(-1px);
}

#contact-form .btn-submit svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

#contact-form .btn-submit span {
    color: #fff !important;
    line-height: 1 !important;
}

/* Info Card */
.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

.contact-info-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h3 svg {
    width: 20px;
    height: 20px;
    color: #ff5501;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:first-of-type {
    padding-top: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: #fff0e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: #ff5501;
}

.contact-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-details .label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-details .value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-details a.value:hover {
    color: #ff5501;
}

.contact-details .secondary {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        order: -1;
    }
}

@media (max-width: 600px) {
    .konect-contact-page {
        padding: 30px 16px 50px;
    }

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

    .contact-hero p {
        font-size: 15px;
    }

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

    .contact-form-card {
        padding: 24px;
    }
}

/* Reset Magento default styles */
.konect-contact-page .form.contact,
.konect-contact-page .konect-contact-form {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.konect-contact-page .fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.konect-contact-page .legend {
    display: none;
}

.konect-contact-page .field.note {
    display: none;
}

.konect-contact-page .actions-toolbar {
    margin: 0;
    padding: 0;
}

/* Fix button alignment */
.contact-form-card .konect-contact-form {
    width: 100%;
}

.form-actions {
    margin-top: 8px;
}

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