/* Custom styles for VIP Valencia contact form */

/* Language Selector Dropdown Styling */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.language-select option {
    background: #2d3748;
    color: white;
    padding: 0.5rem;
}

/* Custom dropdown arrow */
.language-dropdown::after {
    content: '▼';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.language-dropdown:hover::after {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsive language dropdown */
@media (max-width: 768px) {
    .language-select {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0.4rem 1.5rem 0.4rem 0.5rem;
    }

    .language-dropdown::after {
        right: 0.5rem;
        font-size: 0.7rem;
    }
}

/* Summary Image Aspect Ratio Control */
.summary-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    overflow: hidden;
    border-radius: 4px;
}

.summary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.summary-image-container:hover .summary-image {
    transform: scale(1.05);
}

/* Enhanced form styling */
.form-contact {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, helvetica, 'helvetica neue', ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
}

/* Form layout classes */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 0;
}

.form-column {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.form-column-full {
    width: 100%;
}

.form-column-half {
    width: 100%;
    padding: 0;
}

.form-column-third {
    width: 100%;
    padding: 0;
}

/* Responsive column layouts */
@media (min-width: 480px) {
    .form-column-half {
        width: calc(50% - 0.5rem);
    }

    .form-column-half:first-child {
        margin-right: 1rem;
    }

    .form-column-third {
        width: calc(30% - 0.67rem);
        margin-right: 1rem;
    }

    .form-column-third:last-child {
        margin-right: 0;
    }
}

/* Form element styling */
.form-label {
    font-size: 0.875rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
    color: #718096;
    font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, helvetica, 'helvetica neue', ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    background-color: #f7fafc;
    border: none;
    box-sizing: border-box;
    display: block;
}

.form-textarea {
    min-height: 6rem;
    resize: vertical;
}

.form-submit {
    display: block;
    width: 100%;
    margin: 1rem 0;
    color: white;
    padding: 0.75rem;
    border: none;
    background: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.form-note {
    font-size: 0.875rem;
    color: #a0aec0;
    font-style: italic;
    padding: 0.75rem;
    margin-top: 0.25rem;
}

/* Enhanced form element styling with borders */
.form-input,
.form-select,
.form-textarea {
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #cbd5e0;
}

/* Input focus effects */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Select dropdown styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Date input styling */
.form-input[type="date"] {
    position: relative;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Mobile responsive improvements */
@media (max-width: 479px) {
    .form-contact {
        padding: 1rem;
        margin: 0 1rem;
    }

    .form-column {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .form-column:last-child {
        margin-bottom: 0;
    }
}

/* Submit button enhancement */
.form-submit {
    background: linear-gradient(135deg, #000 0%, #333 100%) !important;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: linear-gradient(135deg, #333 0%, #000 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Label styling */
.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* Required field indicator */
.form-label[for*="name"],
.form-label[for*="email"],
.form-label[for*="phone"],
.form-label[for*="service"],
.form-label[for*="start"],
.form-label[for*="end"] {
    position: relative;
}

.form-label[for*="name"]::after,
.form-label[for*="email"]::after,
.form-label[for*="phone"]::after,
.form-label[for*="service"]::after,
.form-label[for*="start"]::after,
.form-label[for*="end"]::after {
    content: " *";
    color: #e53e3e;
    font-weight: bold;
}

/* Optional field styling */
.form-label[for="company"] {
    color: #718096;
}

/* Message textarea enhancement */
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Show validation styling only after form submission attempt */
.form-contact.submitted .form-input:invalid,
.form-contact.submitted .form-select:invalid {
    border-color: #e53e3e;
    border-width: 2px;
}

.form-contact.submitted .form-input:valid,
.form-contact.submitted .form-select:valid {
    border-color: #38a169;
    border-width: 2px;
}

/* Loading state for submit button */
.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success message styling */
.form-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Error message styling */
.form-error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #742a2a;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Testimonials Section Styling - TrustPilot Style */
.testimonials-section {
    background: #f8fafc;
    padding: 3rem 0;
    margin: 0;
    border-top: 1px solid #e2e8f0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-title h3 {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.875rem;
}

.testimonials-subtitle p {
    color: #718096;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

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

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.testimonial-rating {
    display: flex;
    gap: 1px;
}

.testimonial-rating .star {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-date {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.testimonial-content {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 2rem;
    color: #e5e7eb;
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.testimonial-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.testimonial-position {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.testimonial-company {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Responsive testimonials */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonials-title h3 {
        font-size: 1.5rem;
    }

    .testimonials-subtitle p {
        font-size: 1rem;
    }
}

/* TrustPilot-style overall rating */
.testimonials-overall-rating {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.overall-rating-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.overall-rating-stars .star {
    color: #fbbf24;
    font-size: 1.5rem;
}

.overall-rating-text {
    color: #374151;
    font-weight: 600;
    font-size: 1.125rem;
}

.overall-rating-count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Sticky Contact Link */
.sticky-contact-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sticky-contact-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.sticky-contact-button:hover {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
}

.sticky-contact-button svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sticky-contact-button:hover svg {
    transform: scale(1.1);
}

.sticky-contact-text {
    white-space: nowrap;
}

/* Mobile responsive sticky contact */
@media (max-width: 768px) {
    .sticky-contact-link {
        top: 10px;
        right: 10px;
    }

    .sticky-contact-button {
        padding: 10px 12px;
        min-width: auto;
        font-size: 0.75rem;
    }

    .sticky-contact-text {
        display: none;
    }

    .sticky-contact-button svg {
        width: 18px;
        height: 18px;
    }
}
