:root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #111827;
}

.companion-page {
    min-height: 100vh;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    padding: 32px 16px 48px;
}

.companion-card {
    width: 100%;
    max-width: 700px;
    background: rgba(30, 18, 185, 0.1);
    border-radius: 28px;
    padding: 32px 28px 36px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.companion-header {
    text-align: center;
}

.companion-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #67718a;
    margin: 0;
}

.companion-header h1 {
    font-size: 30px;
    margin: 12px 0 0;
    color: #1f2432;
}

.video-shell {
    margin: 24px 0 10px;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), 0 20px 35px rgba(15, 23, 42, 0.15);
    background: #050607;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.responsibilities { 
    margin-bottom: 32px;
}


.responsibility-header  {
    text-align: center;
}

.dotted-top-border {
    border: none;
    border-top: 1px dotted black;
    height: 1px;
}

.companion-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1c2337;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    border: 1px solid #dfe3ec;
    border-radius: 18px;
    padding: 14px 48px 14px 48px;
    font-size: 15px;
    background: #fdfdff;
    color: #1c2337;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: #3c82f6;
    box-shadow: 0 0 0 3px rgba(60, 130, 246, 0.18);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #8c94ab;
    display: inline-flex;
}

.chevron {
    position: absolute;
    right: 18px;
    color: #8c94ab;
    pointer-events: none;
    display: inline-flex;
}

.input-wrapper select {
    padding-right: 52px;
    appearance: none;
    -webkit-appearance: none;
}

.input-wrapper select:required:invalid {
    color: #8c94ab;
}

.cta {
    margin-top: 12px;
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: #111b2d;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(0, 94, 232, 0.35);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta.disabled,
.cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.form-hint {
    margin-top: -6px;
    color: #7c849b;
    font-size: 13px;
}

input::placeholder {
    color: #8c94ab;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.assignment-shell {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 560px;
}

.assignment-header {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ghost-icon-button {
    border: none;
    background: #edf1fb;
    border-radius: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0d1628;
    font-size: 20px;
}

.question-count {
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e5e7f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-thumb {
    height: 100%;
    width: 0;
    background: #0f172a;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.question-card {
    background: #f7f8fc;
    border-radius: 20px;
    padding: 18px;
}

.question-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.question-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #0f172a;
}

.question-icon .material-symbols-outlined {
    font-size: 30px;
}

.question-label {
    font-weight: 600;
    margin: 0;
}

.question-duration {
    margin: 4px 0 0;
    color: #6b728c;
    font-size: 13px;
}

.question-prompt {
    margin: 16px 0 0;
    color: #4b5567;
    font-size: 15px;
    line-height: 1.5;
}

.play-button {
    margin-left: auto;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #101b33;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button.inverse {
    background: #0f172a;
    color: #fff;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 14px solid #fff;
}

.pause-icon {
    width: 14px;
    height: 14px;
    position: relative;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
}

.pause-icon::after {
    right: 0;
}

.pause-icon::before {
    left: 0;
}

.answer-section h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.record-prompt {
    border-radius: 20px;
    background: #f5f6fb;
    text-align: center;
    padding: 30px 20px;
    color: #4b5567;
}

.record-prompt.active {
    background: #0f172a;
    color: #ffffff;
}

.record-prompt.uploading {
    background: #fdf2d9;
    color: #8a641a;
}

.recording-time {
    font-size: 30px;
    font-weight: 700;
    margin: 8px 0 18px;
}

.recording-sub {
    margin-top: 16px;
    font-size: 13px;
}

.mic-button {
    border: none;
    border-radius: 999px;
    width: 72px;
    height: 72px;
    background: #0f172a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    gap: 8px;
    transition: transform 0.2s ease;
}

.mic-button .material-symbols-outlined {
    font-size: 32px;
}

.stop-button {
    border: none;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    border-radius: 999px;
    padding: 12px 24px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.stop-button:hover {
    background: #f4f6fd;
}

.assignment-cta {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 20px;
    background: #111b2d;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: auto;
}

.assignment-cta.disabled,
.assignment-cta:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.answer-player {
    background: #f7f8fc;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-player-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.answer-progress {
    flex: 1;
}

.progress-track.light {
    background: #dce2f1;
}

.progress-thumb.dark {
    background: #0f172a;
}

.answer-times {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 8px;
    color: #5a6075;
}

.answer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.text-button {
    background: none;
    border: none;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.upload-error {
    color: #c53b3b;
    font-size: 13px;
}

.assignment-shell.complete {
    justify-content: center;
}

.completion-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completion-card h2 {
    margin-bottom: 4px;
}

.completion-card p {
    color: #4b5567;
}

@media (max-width: 480px) {
    .companion-card {
        padding: 28px 22px 32px;
        border-radius: 24px;
    }

    .companion-header h1 {
        font-size: 26px;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding-left: 44px;
    }

    .assignment-shell {
        padding: 24px;
        border-radius: 24px;
    }
}
