/* Sacred Farewell Cremation Services - Professional Design */

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

:root {
    /* Professional Color Palette */
    --primary: #4a5568;
    --secondary: #805ad5;
    --accent: #d69e2e;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --border: #e2e8f0;
    --success: #48bb78;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--primary);
}

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

/* Header */
header {
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.tagline {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--secondary);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px var(--shadow);
}

.service-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Planner Section */
.planner {
    padding: 80px 0;
    background: var(--bg);
}

.planner h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.planner-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    padding: 40px;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary);
}

/* Religion Options */
.religion-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.religion-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.religion-card:hover {
    border-color: var(--secondary);
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow);
}

.religion-card.selected {
    border-color: var(--secondary);
    background: #f3e8ff;
}

.religion-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.religion-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.religion-card p {
    font-size: 12px;
    color: var(--text-light);
}

/* Services Checklist */
.services-checklist {
    margin-bottom: 30px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-item:hover {
    background: #e6f7ff;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.checkbox-item .price {
    color: var(--accent);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Price Summary */
.price-summary {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.price-summary h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.price-breakdown {
    margin-top: 15px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.price-line.total {
    border-top: 2px solid var(--secondary);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
}

.price-line.total span {
    color: var(--secondary);
}

/* Buttons */
.next-btn,
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.next-btn:hover,
.submit-btn:hover {
    background: #6b46c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 90, 213, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.contact-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
    font-size: 28px;
    color: var(--success);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.modal-content button {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-content button:hover {
    background: #6b46c1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }

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

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

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
    }
}
