
/* ---- Page Level Styling ---- */
.app-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ---- Hero Section ---- */
.app-hero {
    position: relative;
    padding: 120px 0; /* Fully contains the card */
    background: url('https://tipcoengineering.com/public/uploads/banner.jpeg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7); /* Dark overlay */
}

.hero-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 60px;
    max-width: 1100px; width: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    z-index: 10;
}

.hero-card h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 20px;
}

.hero-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* ---- Grid Section ---- */
.app-grid-section {
    padding: 60px 0 40px;
    background: #ffffff;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.app-card-img {
    height: 110px;
    overflow: hidden;
    background: #f8f9fa;
}

.app-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .app-card-img img {
    transform: scale(1.08);
}

.app-card-title {
    background: #2b8b8d;
    color: #ffffff;
    padding: 10px 8px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* ---- Form Section ---- */
.app-form-section {
    padding: 20px 0 40px;
    background: #ffffff;
}

.app-form-container {
    max-width: 1280px; width: 100%;
    text-align: center;
}

.app-form-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.form-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 40px;
}

#quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.form-row input, 
.form-row-full textarea,
.mobile-input select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-row input:focus, 
.form-row-full textarea:focus,
.mobile-input select:focus {
    border-color: #339294;
}

.mobile-input {
    display: flex;
    gap: 8px;
}

.mobile-input select {
    width: 80px;
    padding: 12px 8px;
    background: #f9fafb;
}

.form-submit {
    margin-top: 10px;
}

.submit-btn {
    background: #339294;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #186B6D;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-card {
        padding: 24px;
        transform: translateY(40px);
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}
