* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.form-section {
    background: white;
    padding: clamp(30px, 5vw, 50px);
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c5aa0;
}

input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1);
    background: white;
    transform: translateY(-2px);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
}

.estimate-result {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid #2c5aa0;
}

.estimate-total {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 20px;
}

.estimate-breakdown {
    margin-top: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.calculate-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 18px 36px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(44, 90, 160, 0.4);
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.page-header {
    background: linear-gradient(135deg, var(--miami-turquoise) 0%, var(--miami-blue) 100%);
    padding: clamp(3.6px, 0.48vw, 4.8px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .page-header {
        padding: 3.6px 0;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.page-header h1 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.72px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
}

section:nth-child(even) {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #1a202c;
    margin-bottom: clamp(40px, 6vw, 80px);
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--miami-turquoise) 0%, var(--miami-coral) 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2c5aa0;
    margin: 40px 0;
    text-align: center;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin: 50px auto;
    display: block;
    width: fit-content;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.4);
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: 60px;
}

.service-list li {
    padding: 40px 30px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--miami-turquoise) 0%, var(--miami-coral) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-list li:hover::before {
    transform: scaleX(1);
}

.service-list li:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: rgba(44, 90, 160, 0.2);
}

.service-list li img {
    display: none;
}

.service-list li .text-content {
    position: relative;
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 20px;
    border-radius: 12px;
}

.service-list li strong {
    color: #2c5aa0;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-list li span {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

#hero {
    text-align: center;
    background: linear-gradient(135deg, var(--miami-turquoise) 0%, var(--miami-blue) 100%);
    padding: clamp(100px, 15vw, 160px) 0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

#hero h2 {
    color: white;
    margin-bottom: 30px;
}

#hero h2::after {
    background: rgba(255,255,255,0.3);
}

#hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255,255,255,0.9);
    max-width: 900px;
    margin: 0 auto 60px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #a0aec0;
    padding: clamp(60px, 8vw, 100px) 0 40px;
    font-size: 1rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(30px, 5vw, 50px);
    margin-bottom: 50px;
    text-align: center;
}

.footer-section h3 {
    color: #2c5aa0;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 15px;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.footer-section strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-section a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a7bc8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    color: #888;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: white;
}

.social-links a .material-icons {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-links a:nth-child(1):hover {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-links a:nth-child(2):hover {
    background: linear-gradient(135deg, #e4405f 0%, #fd1d1d 50%, #fcb045 100%);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-links a:nth-child(3):hover {
    background: linear-gradient(135deg, #000000 0%, #1da1f2 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-links a:nth-child(4):hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
}

.social-links a:hover .material-icons {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .service-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-list li {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .form-section {
        padding: 24px;
        border-radius: 12px;
    }
    
    input, select, textarea {
        padding: 14px 16px;
        border-radius: 8px;
    }
}