/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Main Container */
.root-canal-calculator-container {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
}

/* Header */
.rcc-header {
    text-align: center;
    margin-bottom: 25px;
}

.rcc-header h2 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
}

.rcc-header p {
    margin: 5px 0 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Form Group Styling */
.rcc-form-group {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rcc-form-group:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rcc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Select Dropdown Styling */
.rcc-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27292.4%27%20height%3D%27292.4%27%3E%3Cpath%20fill%3D%27%23764ba2%27%20d%3D%27M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .65em auto;
}

/* Radio Button Styling */
.rcc-radio-group {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.rcc-radio-group input[type="radio"] {
    display: none;
}

.rcc-radio-group label {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 1em;
    border: 2px solid transparent;
}

.rcc-radio-group input[type="radio"]:checked + label {
    background: #ffffff;
    color: #667eea;
    font-weight: 600;
    border-color: #667eea;
}

/* Result Section */
.rcc-result-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.rcc-result-section .rcc-result-label {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

.rcc-result-section .rcc-result-amount {
    font-size: 2.8em;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
    letter-spacing: 1px;
}

/* Footer and Clock */
.rcc-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

#rcc-clock {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.95em;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 480px) {
    .root-canal-calculator-container {
        padding: 20px;
    }

    .rcc-header h2 {
        font-size: 1.8em;
    }

    .rcc-form-group {
        padding: 12px;
    }

    .rcc-radio-group {
        flex-direction: column;
    }

    .rcc-result-section .rcc-result-amount {
        font-size: 2.2em;
    }
}