/* D8 Wrap - Form Styles */

/* Form Container */
.form {
    max-width: 600px;
}

.form-row {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Form Group */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-label-required::after {
    content: ' *';
    color: var(--primary);
}

/* Input Base */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--cyber-aqua);
    background: rgba(14, 240, 253, 0.03);
    box-shadow: 0 0 20px rgba(14, 240, 253, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Textarea */
.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23babcc7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--garage-black);
    color: var(--text-light);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.form-check-input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: solid var(--garage-black);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="radio"]:checked::after {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: var(--garage-black);
    transform: translate(-50%, -50%);
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Validation States */
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid {
    border-color: #ff4444;
}

.form-input.is-valid,
.form-textarea.is-valid,
.form-select.is-valid {
    border-color: #00cc66;
}

.form-error {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

/* Form Success Message */
.form-success {
    padding: var(--spacing-md);
    background: rgba(56, 255, 21, 0.1);
    border: 1px solid rgba(56, 255, 21, 0.3);
    border-radius: var(--radius-md);
    color: var(--laser-lime);
    text-align: center;
}

/* File Input */
.form-file {
    position: relative;
}

.form-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-align: center;
    transition: all var(--transition-fast);
}

.form-file:hover .form-file-label {
    border-color: var(--primary);
    color: var(--primary);
}

/* Phone Input with Country Code */
.form-phone {
    display: flex;
    gap: var(--spacing-xs);
}

.form-phone-code {
    width: 100px;
    flex-shrink: 0;
}

.form-phone-number {
    flex: 1;
}

/* ================================
   Contact Page Styles
   ================================ */

/* Section with background image */
.contacts-section {
    position: relative;
}

.contacts-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.contacts-section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.15;
}

.contacts-section .container {
    position: relative;
    z-index: 1;
}

/* Two-column grid */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Equal height version */
.contacts-grid-equal {
    align-items: stretch;
}

.contacts-grid-equal .contact-form-wrapper,
.contacts-grid-equal .contact-info-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contacts-grid-equal .contact-info-list {
    flex: 1;
}

@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contacts-grid-equal .contact-form-wrapper,
    .contacts-grid-equal .contact-info-wrapper {
        height: auto;
    }
}

/* Form wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-wrapper .section-title {
    margin-bottom: var(--spacing-lg);
}

/* Contact Info wrapper */
.contact-info-wrapper {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-wrapper .section-title {
    margin-bottom: var(--spacing-lg);
}

/* Contact Info List */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Contact Info Item - horizontal layout */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-info-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 90, 0, 0.15) 0%, rgba(255, 0, 200, 0.1) 100%);
    border: 1px solid rgba(255, 90, 0, 0.2);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-info-content p,
.contact-info-content a {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-info-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-info-link:hover {
    color: var(--primary);
}

/* Working Hours */
.contact-hours {
    background: linear-gradient(135deg, rgba(14, 240, 253, 0.05) 0%, rgba(14, 0, 253, 0.05) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
    border-left: 3px solid var(--cyber-aqua);
}

.contact-hours h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyber-aqua);
    margin-bottom: var(--spacing-sm);
}

.contact-hours p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-hours p:last-child {
    margin-bottom: 0;
}

/* Map */
.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-map iframe {
    display: block;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: var(--spacing-xl);
}

.form-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: rgba(56, 255, 21, 0.1);
    border: 2px solid var(--laser-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--laser-lime);
    box-shadow: 0 0 30px rgba(56, 255, 21, 0.3);
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--text-muted);
}

/* Contact CTA */
.contact-cta {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-cta p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Map Section */
.map-section {
    padding-top: 0;
}

.map-section .section-title {
    margin-bottom: var(--spacing-sm);
}

.map-section .section-subtitle {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.contact-map-full {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-map-full iframe {
    display: block;
    width: 100%;
}

.text-center {
    text-align: center;
}